.matching-page {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.76), transparent 24%),
    radial-gradient(circle at 86% 20%, rgba(210, 121, 90, 0.13), transparent 22%),
    linear-gradient(180deg, #fbf6ef 0%, #f6eee5 46%, #f4ebdf 100%);
}

body.modal-open {
  overflow: hidden;
}

.matching-main {
  width: var(--page-width);
  margin: 0 auto;
  padding: 34px 0 96px;
}

.fortune-v2-rail,
.matching-share-rail {
  position: fixed;
  top: 168px;
  left: max(18px, calc(50vw - 700px));
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 12px;
  border: 1px solid rgba(190, 146, 112, 0.2);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.96) 0%, rgba(246, 237, 226, 0.94) 100%);
  box-shadow: 0 22px 46px rgba(97, 56, 35, 0.08);
}

.fortune-v2-rail-line,
.matching-share-rail-line {
  position: absolute;
  top: 26px;
  bottom: 26px;
  right: 14px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(155, 33, 35, 0.84) 0%, rgba(155, 33, 35, 0.22) 100%);
}

.fortune-v2-rail-btn,
.matching-share-rail-btn {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(193, 161, 130, 0.26);
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf9 0%, #f7eedf 100%);
  color: #7a312f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(122, 49, 47, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.fortune-v2-rail-btn i,
.matching-share-rail-btn i {
  font-size: 1.05rem;
}

.fortune-v2-rail-btn::after,
.matching-share-rail-btn::after {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(37, 28, 24, 0.92);
  color: #fff8f1;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.fortune-v2-rail-btn:hover,
.fortune-v2-rail-btn:focus-visible,
.fortune-v2-rail-btn.is-copied,
.fortune-v2-rail-btn.is-saved,
.matching-share-rail-btn:hover,
.matching-share-rail-btn:focus-visible,
.matching-share-rail-btn.is-copied,
.matching-share-rail-btn.is-saved {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #a4282a 0%, #8a2426 100%);
  color: #fff8f1;
  box-shadow: 0 16px 28px rgba(138, 36, 38, 0.18);
}

.fortune-v2-rail-btn:hover::after,
.fortune-v2-rail-btn:focus-visible::after,
.matching-share-rail-btn:hover::after,
.matching-share-rail-btn:focus-visible::after {
  opacity: 1;
}

.fortune-v2-rail-btn-card,
.matching-share-rail-btn-card {
  background: linear-gradient(180deg, #fff8ed 0%, #f4dfb8 100%);
  color: #9a6a26;
}

.matching-share-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(35, 28, 24, 0.94);
  color: #fffaf4;
  font-size: 0.95rem;
  box-shadow: 0 16px 32px rgba(35, 28, 24, 0.2);
}

.matching-share-toast[data-error="true"] {
  background: rgba(120, 27, 29, 0.96);
}

.matching-share-card-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.matching-share-card-modal[hidden],
.matching-share-card-feedback[hidden] {
  display: none !important;
}

.matching-share-card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 19, 17, 0.62);
  backdrop-filter: blur(6px);
}

.matching-share-card-shell {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.matching-share-card-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(48, 36, 31, 0.82);
  color: #fff8f1;
}

.matching-share-card-surface {
  position: relative;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid rgba(191, 147, 106, 0.2);
  background: linear-gradient(180deg, rgba(252, 246, 238, 0.98) 0%, rgba(244, 234, 222, 0.97) 100%);
  box-shadow: 0 28px 64px rgba(82, 44, 28, 0.18);
}

.matching-share-card-top,
.matching-share-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.matching-share-card-kicker,
.matching-share-card-status,
.matching-share-card-score span {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.matching-share-card-kicker {
  color: #9d1c1f;
}

.matching-share-card-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(83, 116, 73, 0.14);
  color: #4d6641;
}

.matching-share-card-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.matching-share-card-art {
  position: relative;
  min-height: 168px;
}

.matching-share-card-art-frame {
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 28px;
  border: 1px solid rgba(191, 147, 106, 0.24);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(243, 230, 213, 0.96) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(82, 44, 28, 0.08);
}

.matching-share-card-art-frame img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.matching-share-card-art-frame-partner {
  left: 56px;
  top: 48px;
}

.matching-share-card-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.7rem + 0.6vw, 2.6rem);
  line-height: 0.96;
  color: #2b1b18;
}

.matching-share-card-subtitle,
.matching-share-card-pairline,
.matching-share-card-summary,
.matching-share-card-access {
  margin: 10px 0 0;
  color: #6f594f;
  line-height: 1.6;
}

.matching-share-card-score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.matching-share-card-score {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 147, 106, 0.18);
  background: rgba(255, 255, 255, 0.56);
}

.matching-share-card-score strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 0.9;
  color: #8f1f22;
}

.matching-share-card-free-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.matching-share-card-free-block {
  padding: 16px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(111, 137, 101, 0.16);
  background: linear-gradient(180deg, rgba(248, 252, 246, 0.92) 0%, rgba(241, 247, 236, 0.88) 100%);
}

.matching-share-card-free-label {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #55714b;
}

.matching-share-card-free-copy {
  margin: 10px 0 0;
  color: #4f433d;
  line-height: 1.58;
}

.matching-share-card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.matching-share-card-tag {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(90, 118, 78, 0.12);
  color: #4f6646;
}

.matching-share-card-tag.is-positive {
  background: rgba(90, 118, 78, 0.12);
  color: #4f6646;
}

.matching-share-card-tag.is-mixed {
  background: rgba(187, 132, 64, 0.12);
  color: #94612a;
}

.matching-share-card-tag.is-challenge,
.matching-share-card-tag.is-negative {
  background: rgba(157, 28, 31, 0.1);
  color: #8b2528;
}

.matching-share-card-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.matching-share-card-report-block {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 147, 106, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.matching-share-card-report-block.is-premium {
  background: linear-gradient(180deg, rgba(247, 238, 230, 0.96) 0%, rgba(241, 230, 220, 0.94) 100%);
  border-color: rgba(164, 40, 42, 0.12);
}

.matching-share-card-report-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.02;
  color: #2b1b18;
}

.matching-share-card-premium-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.matching-share-card-premium-item {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(191, 147, 106, 0.16);
}

.matching-share-card-premium-item h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #7d2326;
}

.matching-share-card-premium-item p,
.matching-share-card-conflict-note,
.matching-share-card-premium-empty {
  margin: 8px 0 0;
  color: #5f4e47;
  line-height: 1.58;
}

.matching-share-card-footer {
  margin-top: 24px;
  align-items: end;
}

.matching-share-card-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.matching-share-card-action-btn {
  min-width: 92px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(191, 147, 106, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #7a312f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.matching-share-card-action-btn:hover,
.matching-share-card-action-btn:focus-visible {
  border-color: rgba(157, 28, 31, 0.26);
  background: rgba(255, 251, 246, 0.92);
}

.matching-share-card-feedback {
  margin-top: 14px;
  color: #4d6641;
}

.matching-share-card-feedback.is-error {
  color: #8f1f22;
}

.matching-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.matching-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 30px;
  align-items: stretch;
}

.matching-hero-copy,
.matching-preview-card,
.matching-form,
.matching-guide-card {
  border: 1px solid rgba(148, 99, 74, 0.12);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.96) 0%, rgba(246, 238, 229, 0.94) 100%);
  box-shadow: 0 28px 64px rgba(105, 56, 35, 0.09);
}

.matching-hero-copy {
  padding: 34px 38px;
}

.matching-hero-copy h1,
.matching-section-head h2,
.matching-guide-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 3rem + 2.3vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: #2a1714;
}

.matching-section-head h2,
.matching-guide-card h3 {
  font-size: clamp(2.2rem, 1.6rem + 1.4vw, 3.3rem);
  line-height: 0.98;
}

.matching-lede,
.matching-section-head p,
.matching-guide-copy,
.matching-cta-note {
  color: #5c4f48;
  font-size: 1.06rem;
  line-height: 1.8;
}

.matching-lede {
  margin: 16px 0 0;
  max-width: 560px;
}

.matching-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.matching-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 99, 74, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #5a4a42;
  font-size: 0.93rem;
  font-weight: 600;
}

.matching-preview-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.matching-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.matching-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(157, 28, 31, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.matching-preview-stage {
  margin-top: 14px;
  padding: 20px 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, #8a2426 0%, #692124 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.matching-preview-person {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.matching-preview-image-frame {
  width: 136px;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  border: 1px solid rgba(255, 245, 237, 0.2);
  background: rgba(255, 250, 244, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.matching-preview-image-frame img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(28, 6, 6, 0.18));
}

.matching-preview-meta span,
.matching-preview-meta small {
  color: rgba(255, 245, 237, 0.8);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.matching-preview-meta strong {
  display: block;
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff7f1;
  line-height: 0.95;
}

.matching-preview-divider {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1ca84 0%, #c49a57 100%);
  color: #561517;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 20px 30px rgba(27, 8, 9, 0.18);
}

.matching-preview-facts {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.matching-preview-facts div {
  padding-top: 14px;
  border-top: 1px solid rgba(148, 99, 74, 0.12);
}

.matching-preview-facts dt {
  margin: 0;
  color: #886e61;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matching-preview-facts dd {
  margin: 10px 0 0;
  color: #372622;
  font-size: 0.96rem;
  line-height: 1.65;
}

.matching-composer {
  margin-top: 34px;
}

.matching-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.matching-section-head p {
  margin: 0;
  max-width: 360px;
}

.matching-composer-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 26px;
}

.matching-form,
.matching-guide-card {
  padding: 26px;
}

.matching-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.matching-role-card,
.matching-mode-card,
.matching-guide-block,
.matching-guide-slab {
  border-radius: 26px;
  border: 1px solid rgba(148, 99, 74, 0.1);
  background: rgba(255, 255, 255, 0.44);
}

.matching-role-card,
.matching-mode-card,
.matching-guide-block {
  padding: 20px;
}

.matching-mode-card {
  margin-top: 18px;
}

.matching-role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.matching-role-head p {
  margin: 0;
  color: #261816;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.matching-role-head span {
  color: #90786d;
  font-size: 0.9rem;
}

.matching-field {
  display: grid;
  gap: 10px;
}

.matching-field + .matching-field {
  margin-top: 14px;
}

.matching-field span {
  color: #8a6f62;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matching-field select {
  width: 100%;
  min-height: 60px;
  padding: 0 16px;
  border: 1px solid rgba(148, 99, 74, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: #342421;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-ui);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.matching-field select:focus {
  outline: 2px solid rgba(157, 28, 31, 0.14);
  outline-offset: 0;
}

.matching-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.matching-mode-tab {
  min-height: 126px;
  padding: 18px 16px;
  border: 1px solid rgba(148, 99, 74, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  color: #4c3e37;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.matching-mode-tab i {
  font-size: 1.3rem;
  color: #9d1c1f;
}

.matching-mode-tab span {
  display: block;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.matching-mode-tab small {
  display: block;
  margin-top: 8px;
  color: #826d61;
  font-size: 0.84rem;
  line-height: 1.45;
}

.matching-mode-tab:hover,
.matching-mode-tab:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(157, 28, 31, 0.22);
  box-shadow: 0 18px 32px rgba(102, 49, 28, 0.1);
}

.matching-mode-tab.is-active {
  background: linear-gradient(135deg, #962326 0%, #711d20 100%);
  border-color: transparent;
  color: #fff6ee;
  box-shadow: 0 22px 38px rgba(118, 22, 25, 0.2);
}

.matching-mode-tab.is-active i,
.matching-mode-tab.is-active small {
  color: rgba(255, 246, 238, 0.88);
}

.matching-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.matching-submit {
  border: 0;
  min-height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 20px 34px rgba(122, 22, 25, 0.18);
  cursor: pointer;
}

.matching-cta-note {
  margin: 0;
  max-width: 340px;
  font-size: 0.95rem;
}

.matching-guide-card {
  display: grid;
  gap: 14px;
}

.matching-guide-slab {
  margin-top: 8px;
  padding: 16px 16px 14px;
}

.matching-guide-slab strong {
  display: block;
  color: #281816;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 0.98;
}

.matching-guide-slab span {
  display: block;
  margin-top: 8px;
  color: #866f63;
  font-size: 0.94rem;
}

.matching-step-list,
.matching-feature-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #5a4a42;
  line-height: 1.68;
}

.matching-feature-list {
  list-style: disc;
}

.matching-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #594942;
  font-weight: 600;
}

.matching-summary-loading {
  padding: 40px 0 18px;
}

.matching-summary-loading h1,
.matching-summary-copy h1,
.matching-summary-head h2,
.matching-summary-unlock-card h2 {
  margin: 0;
  font-family: var(--font-display);
  color: #281715;
}

.matching-summary-loading h1,
.matching-summary-copy h1 {
  font-size: clamp(2.5rem, 1.95rem + 1.3vw, 3.8rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.matching-summary-loading p:last-child,
.matching-summary-copy p,
.matching-summary-muted,
.matching-summary-overview-copy,
.matching-summary-preview-item p,
.matching-summary-conflict p,
.matching-summary-unlock-copy {
  color: #5f5148;
  line-height: 1.75;
}

.matching-summary-layout {
  display: grid;
  gap: 28px;
}

.matching-summary-layout[hidden],
.matching-report-layout[hidden],
.matching-summary-loading[hidden] {
  display: none !important;
}

.matching-summary-hero,
.matching-summary-card {
  border: 1px solid rgba(148, 99, 74, 0.12);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.96) 0%, rgba(246, 238, 229, 0.94) 100%);
  box-shadow: 0 24px 58px rgba(105, 56, 35, 0.08);
}

.matching-summary-hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 24px;
}

.matching-summary-chip-row,
.matching-summary-mode-row,
.matching-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.matching-summary-chip-row {
  margin-top: 20px;
}

.matching-summary-mode-row {
  margin-top: 18px;
}

.matching-summary-mode {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 99, 74, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: #56473f;
  font-weight: 700;
  cursor: pointer;
}

.matching-summary-mode.is-active {
  background: linear-gradient(135deg, #962326 0%, #711d20 100%);
  border-color: transparent;
  color: #fff8f1;
}

.matching-summary-pair-card {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(148, 99, 74, 0.1);
}

.matching-summary-pair-stage {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, #8a2426 0%, #692124 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.matching-summary-person {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.matching-summary-person img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.14);
}

.matching-summary-person span,
.matching-summary-person small {
  color: rgba(255, 246, 238, 0.84);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matching-summary-person strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff7f1;
  line-height: 0.94;
}

.matching-summary-vs {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1ca84 0%, #c49a57 100%);
  color: #561517;
  font-weight: 800;
}

.matching-summary-pair-facts {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.matching-summary-pair-facts div {
  padding-top: 12px;
  border-top: 1px solid rgba(148, 99, 74, 0.12);
}

.matching-summary-pair-facts dt {
  color: #8a6f62;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matching-summary-pair-facts dd {
  margin: 8px 0 0;
  color: #372622;
  font-size: 0.96rem;
  font-weight: 600;
}

.matching-summary-grid,
.matching-summary-locked-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.matching-summary-band {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 6px 4px 0;
}

.matching-summary-band h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 0.5vw, 2.1rem);
  line-height: 0.98;
  color: #281715;
}

.matching-summary-band-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(83, 116, 73, 0.14);
  color: #49613e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matching-summary-band-locked {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 99, 74, 0.12);
}

.matching-summary-band-free {
  align-items: center;
  padding: 10px 18px 4px;
  border: 1px solid rgba(83, 116, 73, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(243, 249, 241, 0.88) 0%, rgba(251, 248, 243, 0.56) 100%);
}

.matching-summary-band-locked .matching-summary-lock-chip {
  background: rgba(157, 28, 31, 0.09);
}

.matching-summary-card {
  padding: 24px;
}

.matching-summary-free-mode-card {
  border-color: rgba(83, 116, 73, 0.14);
  box-shadow: 0 24px 58px rgba(78, 104, 70, 0.06);
}

.matching-summary-free-mode-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98) 0%, rgba(246, 240, 232, 0.95) 100%);
}

.matching-summary-free-mode-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(90deg, rgba(83, 116, 73, 0.92) 0%, rgba(123, 148, 96, 0.56) 100%);
}

.matching-summary-free-shell {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-top: 14px;
}

.matching-summary-score-ring {
  width: 182px;
  height: 182px;
  margin: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 250, 244, 1) 0 57%, transparent 58%),
    conic-gradient(#8f1f22 0 316deg, rgba(143, 31, 34, 0.12) 316deg 360deg);
  display: grid;
  place-items: center;
}

.matching-summary-score-ring strong {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 0.88;
  color: #8f1f22;
}

.matching-summary-score-ring span {
  display: block;
  text-align: center;
  color: #805f56;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matching-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.matching-summary-head h2,
.matching-summary-unlock-card h2 {
  font-size: clamp(1.55rem, 1.28rem + 0.5vw, 2rem);
  line-height: 1;
}

.matching-summary-overview-copy {
  margin: 0;
  font-size: 1rem;
}

.matching-summary-tags {
  margin-top: 16px;
}

.matching-summary-tag {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.matching-summary-tag.is-positive {
  background: rgba(83, 116, 73, 0.16);
  color: #46613d;
}

.matching-summary-tag.is-negative {
  background: rgba(157, 28, 31, 0.12);
  color: #8f1f22;
}

.matching-summary-tag.is-neutral {
  background: rgba(196, 154, 87, 0.16);
  color: #836239;
}

.matching-summary-lock-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(157, 28, 31, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matching-summary-preview-list,
.matching-summary-conflicts {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.matching-summary-preview-item,
.matching-summary-conflict {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 99, 74, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.matching-summary-preview-card,
.matching-summary-conflicts-card {
  position: relative;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(251, 247, 243, 0.92) 0%, rgba(244, 237, 231, 0.92) 100%);
  box-shadow: none;
  opacity: 0.94;
}

.matching-summary-preview-card::after,
.matching-summary-conflicts-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.12) 0%, rgba(157, 28, 31, 0.03) 100%);
  pointer-events: none;
}

.matching-summary-preview-card .matching-summary-preview-item,
.matching-summary-conflicts-card .matching-summary-conflict {
  background: rgba(255, 255, 255, 0.42);
}

.matching-summary-preview-card .matching-summary-head h2,
.matching-summary-conflicts-card .matching-summary-head h2 {
  color: #42302d;
}

.matching-summary-preview-card .matching-kicker,
.matching-summary-conflicts-card .matching-kicker {
  color: rgba(143, 31, 34, 0.78);
}

.matching-summary-preview-list {
  grid-template-columns: 1fr;
  gap: 12px;
}

.matching-summary-preview-item {
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 12px;
  min-height: 100%;
}

.matching-summary-preview-score {
  width: 72px;
}

.matching-summary-preview-item h3 {
  font-size: 1.02rem;
  line-height: 1.04;
}

.matching-summary-preview-item p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.58;
}

.matching-summary-conflicts {
  grid-template-columns: 1fr;
  gap: 12px;
}

.matching-summary-conflict {
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.matching-summary-conflict-score {
  width: 72px;
}

.matching-summary-conflict h3 {
  font-size: 1rem;
  line-height: 1.04;
}

.matching-summary-conflict p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.58;
}

.matching-summary-preview-score,
.matching-summary-conflict-score {
  padding: 10px 8px;
  border-radius: 15px;
  background: rgba(157, 28, 31, 0.08);
  text-align: center;
}

.matching-summary-preview-score strong,
.matching-summary-conflict-score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 0.9;
  color: #8f1f22;
}

.matching-summary-preview-score span,
.matching-summary-conflict-score span {
  color: #8a6f62;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.matching-summary-preview-item h3,
.matching-summary-conflict h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: #2d1a17;
}

.matching-summary-unlock-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.98fr);
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(157, 28, 31, 0.16);
  box-shadow: 0 26px 64px rgba(118, 22, 25, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 248, 244, 0.98) 0%, rgba(245, 232, 223, 0.94) 100%);
}

.matching-summary-unlock-card.is-paid {
  border-color: rgba(90, 104, 82, 0.18);
  box-shadow: 0 28px 70px rgba(63, 79, 58, 0.08);
  background:
    linear-gradient(135deg, rgba(248, 249, 242, 0.98) 0%, rgba(239, 235, 225, 0.95) 100%);
}

.matching-summary-unlock-card.is-paid .matching-kicker {
  color: #556a4f;
}

.matching-summary-unlock-card.is-paid h2 {
  color: #243020;
}

.matching-summary-unlock-rail {
  display: grid;
  gap: 14px;
}

.matching-summary-price-badge {
  padding: 20px 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, #8a2426 0%, #692124 100%);
  color: #fff6ef;
  box-shadow: 0 22px 40px rgba(118, 22, 25, 0.16);
}

.matching-summary-price-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.88;
}

.matching-summary-price-badge span {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 246, 239, 0.84);
}

.matching-summary-price-badge.is-paid {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #4f6346 0%, #374532 100%);
  color: #f5f2e9;
  box-shadow: 0 24px 46px rgba(55, 69, 50, 0.18);
}

.matching-summary-price-badge.is-paid::after {
  content: "ARCHIVE";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(245, 242, 233, 0.66);
}

.matching-summary-price-badge.is-paid strong {
  font-size: 2.6rem;
  letter-spacing: 0.02em;
}

.matching-summary-price-badge.is-paid span {
  color: rgba(245, 242, 233, 0.78);
}

.matching-summary-unlock-card.is-paid .matching-submit {
  background: linear-gradient(135deg, #31402d 0%, #1f2b1d 100%);
  box-shadow: 0 18px 34px rgba(31, 43, 29, 0.2);
}

.matching-summary-unlock-card.is-paid .matching-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(31, 43, 29, 0.24);
}

.matching-summary-empty {
  margin: 0;
  color: #6e5d55;
}

@media (max-width: 1180px) {
  .fortune-v2-rail,
  .matching-share-rail {
    display: none;
  }

  .matching-main {
    width: min(1160px, calc(100vw - 56px));
  }

  .matching-hero,
  .matching-composer-grid,
  .matching-summary-hero,
  .matching-summary-unlock-card {
    grid-template-columns: 1fr;
  }

  .matching-summary-grid,
  .matching-summary-locked-grid {
    grid-template-columns: 1fr;
  }

  .matching-summary-preview-list,
  .matching-summary-conflicts {
    grid-template-columns: 1fr;
  }

  .matching-summary-free-shell {
    grid-template-columns: 1fr;
  }

  .matching-summary-score-ring {
    margin: 0 auto;
  }

  .matching-share-card-hero,
  .matching-share-card-free-grid,
  .matching-share-card-report-grid,
  .matching-share-card-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .matching-share-card-action-row {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .matching-main {
    width: min(1160px, calc(100vw - 32px));
    padding-top: 28px;
  }

  .matching-hero-copy,
  .matching-preview-card,
  .matching-form,
  .matching-guide-card {
    padding: 24px;
    border-radius: 28px;
  }

  .matching-form-grid,
  .matching-mode-row,
  .matching-preview-facts,
  .matching-summary-pair-stage,
  .matching-summary-pair-facts {
    grid-template-columns: 1fr;
  }

  .matching-share-card-hero,
  .matching-share-card-score-strip,
  .matching-share-card-free-grid,
  .matching-share-card-report-grid {
    grid-template-columns: 1fr;
  }

  .matching-share-card-art {
    min-height: 184px;
  }

  .matching-preview-stage {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .matching-preview-divider {
    width: 54px;
    height: 54px;
  }

  .matching-form-actions,
  .matching-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .matching-submit {
    width: 100%;
    justify-content: center;
  }

  .matching-summary-preview-item,
  .matching-summary-conflict {
    grid-template-columns: 1fr;
  }
}

.matching-report-main {
  padding-top: 28px;
}

.matching-report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.matching-report-layout {
  display: grid;
  gap: 24px;
}

.matching-report-hero,
.matching-report-card {
  border: 1px solid rgba(148, 99, 74, 0.12);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.96) 0%, rgba(246, 238, 229, 0.94) 100%);
  box-shadow: 0 28px 64px rgba(105, 56, 35, 0.08);
}

.matching-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 28px;
  padding: 28px;
}

.matching-report-copy h1,
.matching-report-card h2,
.matching-report-module h3,
.matching-report-conflict h3 {
  margin: 0;
  font-family: var(--font-display);
  color: #2a1714;
}

.matching-report-copy h1 {
  font-size: clamp(3.2rem, 2.6rem + 1.9vw, 4.9rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.matching-report-chip-row,
.matching-report-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.matching-report-chip-row {
  margin-top: 20px;
}

.matching-report-mode-row {
  margin-top: 22px;
}

.matching-report-mode {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 99, 74, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: #5b493f;
  font-size: 0.96rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.matching-report-mode.is-active {
  background: linear-gradient(145deg, #9d1c1f 0%, #7e1b1c 100%);
  border-color: rgba(157, 28, 31, 0.5);
  color: #fff6f1;
  transform: translateY(-1px);
}

.matching-report-pair-card {
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(148, 99, 74, 0.1);
  background: rgba(255, 255, 255, 0.46);
}

.matching-report-pair-facts {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.matching-report-pair-facts div {
  padding-top: 14px;
  border-top: 1px solid rgba(148, 99, 74, 0.12);
}

.matching-report-pair-facts dt {
  margin: 0;
  color: #886e61;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.matching-report-pair-facts dd {
  margin: 10px 0 0;
  color: #372622;
  font-size: 0.96rem;
  line-height: 1.6;
}

.matching-report-grid {
  display: grid;
  gap: 22px;
}

.matching-report-grid-top {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.matching-report-card {
  padding: 24px;
}

.matching-report-snapshot-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.matching-report-score-ring {
  margin: 0;
}

.matching-report-brief-list {
  display: grid;
  gap: 16px;
}

.matching-report-brief-list article {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 99, 74, 0.1);
  background: rgba(255, 255, 255, 0.52);
}

.matching-report-brief-list strong {
  display: block;
  color: #2d1b18;
  font-size: 1rem;
}

.matching-report-brief-list p {
  margin: 8px 0 0;
  color: #5c4f48;
  line-height: 1.7;
}

.matching-report-modules,
.matching-report-conflicts {
  display: grid;
  gap: 18px;
}

.matching-report-module,
.matching-report-conflict {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 99, 74, 0.1);
  background: rgba(255, 255, 255, 0.54);
}

.matching-report-module-score,
.matching-report-conflict-score {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 112px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 34%, rgba(157, 28, 31, 0.1) 0%, rgba(157, 28, 31, 0.04) 44%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(157, 28, 31, 0.12);
}

.matching-report-module-score strong,
.matching-report-conflict-score strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 0.9;
}

.matching-report-module-score span,
.matching-report-conflict-score span,
.matching-report-resolution span {
  color: #8b6c5f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.matching-report-module-copy p,
.matching-report-conflict-copy p,
.matching-report-resolution p {
  color: #5c4f48;
  line-height: 1.75;
}

.matching-report-module-copy p,
.matching-report-conflict-copy p {
  margin: 10px 0 0;
}

.matching-report-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.matching-report-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(128, 147, 112, 0.14);
  color: #49613e;
  font-size: 0.86rem;
  font-weight: 600;
}

.matching-report-resolution {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 99, 74, 0.12);
}

.matching-report-resolution p {
  margin: 8px 0 0;
}

@media (max-width: 1100px) {
  .matching-report-hero,
  .matching-report-grid-top {
    grid-template-columns: 1fr;
  }

  .matching-report-snapshot-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .matching-report-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .matching-report-hero,
  .matching-report-card {
    padding: 20px;
    border-radius: 28px;
  }

  .matching-report-pair-facts,
  .matching-report-module,
  .matching-report-conflict {
    grid-template-columns: 1fr;
  }

  .matching-report-module-score,
  .matching-report-conflict-score {
    min-height: 96px;
  }
}

.matching-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  overflow-y: auto;
}

.matching-modal[hidden] {
  display: none;
}

.matching-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 20, 19, 0.38);
  backdrop-filter: blur(8px);
}

.matching-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 31rem);
  padding: 1.4rem 1.4rem 1.1rem;
  border: 1px solid rgba(152, 107, 93, 0.16);
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.96), rgba(250, 243, 240, 0.96));
  box-shadow: 0 24px 80px rgba(44, 28, 25, 0.22);
  text-align: center;
  max-height: calc(100vh - 1.7rem);
  overflow-y: auto;
}

.matching-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(152, 107, 93, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: #6a4845;
  cursor: pointer;
}

.matching-modal-badge {
  position: relative;
  width: 3.7rem;
  height: 3.7rem;
  margin: 0 auto 0.7rem;
}

.matching-modal-badge-core {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(158, 47, 47, 0.24);
  color: #9e2f2f;
  font-size: 1.3rem;
  background: rgba(255, 252, 249, 0.8);
}

.matching-modal-badge-lock {
  position: absolute;
  right: -0.2rem;
  bottom: -0.2rem;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #fffaf8;
  color: #9e2f2f;
  box-shadow: 0 8px 20px rgba(61, 37, 34, 0.12);
}

.matching-modal-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 2.7vw, 2.5rem);
  line-height: 0.94;
  color: #231918;
}

.matching-modal-intro {
  margin: 0.35rem auto 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(62, 44, 42, 0.68);
}

.matching-modal-price {
  margin: 0.9rem 0 0.8rem;
  padding: 0.7rem 0.8rem;
  border-block: 1px solid rgba(152, 107, 93, 0.12);
  background: rgba(244, 241, 234, 0.72);
}

.matching-modal-price-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(91, 64, 62, 0.8);
}

.matching-modal-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.18rem;
}

.matching-modal-price-row strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: #9e2f2f;
}

.matching-modal-price-row span {
  color: rgba(91, 64, 62, 0.72);
  font-size: 0.78rem;
}

.matching-modal-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.matching-modal-actions[hidden],
.matching-modal-login[hidden],
.matching-modal-login-message[hidden] {
  display: none;
}

.matching-modal-confirm,
.matching-modal-cancel,
.matching-modal-login-submit,
.matching-modal-google-submit {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 0;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.matching-modal-confirm,
.matching-modal-login-submit {
  background: linear-gradient(180deg, #9e2f2f 0%, #8d2626 100%);
  color: #fffaf8;
}

.matching-modal-cancel,
.matching-modal-google-submit {
  border: 1px solid rgba(152, 107, 93, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: #5f4442;
}

.matching-modal-login {
  margin-top: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(152, 107, 93, 0.12);
  text-align: left;
}

.matching-modal-login-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.05;
  color: #231918;
}

.matching-modal-login-head p {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(62, 44, 42, 0.8);
}

.matching-modal-login-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.matching-modal-login-field {
  display: grid;
  gap: 0.45rem;
}

.matching-modal-login-field span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(91, 64, 62, 0.82);
}

.matching-modal-login-form input {
  width: 100%;
  padding: 0.92rem 0.95rem;
  border: 1px solid rgba(152, 107, 93, 0.18);
  background: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  color: #231918;
}

.matching-modal-login-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.matching-modal-login-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.matching-modal-login-links a {
  color: #8f1118;
  font-size: 0.88rem;
  text-decoration: none;
}

.matching-modal-login-message {
  grid-column: 1 / -1;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(152, 107, 93, 0.14);
  background: rgba(255, 250, 248, 0.9);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(62, 44, 42, 0.84);
}

.matching-modal-login-message[data-error="true"],
.matching-summary-muted[data-error="true"] {
  border-color: rgba(143, 17, 24, 0.22);
  color: #8f1118;
}

.matching-modal-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.7rem;
  color: rgba(91, 64, 62, 0.66);
  font-size: 0.72rem;
}

.matching-modal-trust-divider {
  width: 1px;
  height: 0.8rem;
  background: rgba(152, 107, 93, 0.18);
}

@media (max-width: 720px) {
  .matching-modal-login-form,
  .matching-modal-login-actions {
    grid-template-columns: 1fr;
  }

  .matching-modal-login-links,
  .matching-modal-trust {
    flex-direction: column;
  }
}
