.match-shell {
  min-height: 100%;
  background:
    radial-gradient(100% 60% at 50% -10%, rgba(255, 255, 255, 0.5), transparent 50%),
    linear-gradient(165deg, #d9d2c4 0%, var(--bg-deep) 45%, #cfc6b6 100%);
  color: var(--ink);
  font-family: var(--font-ui);
}

.match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 241, 0.9);
  position: sticky;
  top: 0;
  z-index: 5;
}

.match-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-brand__word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  /* Tightened from 0.16em: 11-character wordmark, not 3. */
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.match-brand__word-accent {
  color: var(--accent);
}

/* Affinity axis weights inside the score breakdown */
.match-score__weight {
  font-style: normal;
  font-size: 0.72em;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-left: 8px;
  opacity: 0.85;
}

.match-score__foot {
  border-top: 1px dashed var(--line-strong);
  margin-top: 4px;
  padding-top: 8px;
  opacity: 0.72;
  font-size: 0.9em;
}

.match-brand__tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.match-nav {
  display: flex;
  gap: 8px;
}

.match-nav__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 10px;
}

.match-main {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.match-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}

.match-tab {
  min-height: 40px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--ink-muted);
}

.match-tab.is-active {
  background: var(--ink);
  color: var(--bg-elevated);
}

.match-feed__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.match-feed__eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.match-feed__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
}

.match-feed__count {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-top: 6px;
}

.match-feed__stage {
  touch-action: none;
  min-height: 420px;
  margin-bottom: 16px;
}

.match-card {
  position: relative;
  padding: 20px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: rgba(250, 247, 241, 0.95);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s;
  user-select: none;
}

.match-card.is-dragging {
  box-shadow: 0 22px 48px rgba(26, 46, 36, 0.14);
}

.match-card__hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.match-card__initial {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  background: rgba(26, 46, 36, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.match-card__identity h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.match-card__identity p {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.match-card__about {
  margin: 0 0 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.match-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.match-card__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.match-card__meta p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.4;
}

.match-score {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
  text-align: left;
}

.match-score__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  min-width: 42px;
  color: var(--ink);
}

.match-score__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-score__copy strong {
  font-size: 0.88rem;
}

.match-score__copy em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.match-score__chev {
  color: var(--ink-muted);
  font-weight: 700;
}

.match-score__detail {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.match-score__detail li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.match-card__stamp {
  position: absolute;
  top: 18px;
  padding: 6px 12px;
  border: 2px solid;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  background: rgba(250, 247, 241, 0.92);
}

.match-card__stamp.is-like {
  right: 16px;
  color: var(--success);
  border-color: var(--success);
  transform: rotate(8deg);
}

.match-card__stamp.is-pass {
  left: 16px;
  color: var(--danger);
  border-color: var(--danger);
  transform: rotate(-8deg);
}

.match-feed__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.match-act {
  min-height: 52px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
}

.match-act--pass {
  background: transparent;
  color: var(--ink-soft);
}

.match-act--like {
  background: var(--ink);
  color: var(--bg-elevated);
  border-color: var(--ink);
}

.match-feed__hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.match-hit {
  text-align: center;
  padding: 28px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.match-hit__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.match-hit__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
}

.match-hit__text {
  margin: 0;
  max-width: 30ch;
  color: var(--ink-soft);
}

.match-hit__pair {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}

.match-hit__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
}

.match-hit__amp {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
}

.match-hit__note {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  max-width: 28ch;
}

.match-hit__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(280px, 100%);
  align-items: stretch;
}

.match-empty,
.match-gate {
  padding: 28px 8px;
  text-align: center;
}

.match-empty h1,
.match-gate h1,
.match-list h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.match-empty p,
.match-gate p,
.match-list__empty {
  margin: 0 auto;
  color: var(--ink-soft);
  max-width: 34ch;
  line-height: 1.45;
}

.match-empty__meta {
  margin-top: 12px !important;
  font-size: 0.88rem;
  color: var(--ink-muted) !important;
}

.match-empty__actions,
.match-gate__actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.match-list ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-list__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(250, 247, 241, 0.9);
  width: 100%;
  text-align: left;
}

.match-list__row--btn {
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.match-list__row--btn:hover {
  border-color: var(--ink);
}

.match-list__row strong {
  display: block;
}

.match-list__row span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.match-list__copy {
  flex: 1;
  min-width: 0;
}

.match-list__sub {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  text-align: center;
}

.match-list__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  background: rgba(26, 46, 36, 0.08);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.match-chat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 60vh;
}

.match-chat__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-chat__back {
  align-self: flex-start;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.match-chat__head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.match-chat__head p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.match-chat__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.4);
  min-height: 280px;
  max-height: 48vh;
  overflow-y: auto;
}

.match-chat__empty {
  margin: auto;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
  max-width: 28ch;
  line-height: 1.45;
}

.match-chat__bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.match-chat__bubble p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}

.match-chat__bubble time {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.match-chat__bubble.is-mine {
  align-self: flex-end;
  background: var(--ink);
  border-color: var(--ink);
}

.match-chat__bubble.is-mine p,
.match-chat__bubble.is-mine time {
  color: var(--bg-elevated);
}

.match-chat__bubble.is-theirs {
  align-self: flex-start;
  background: rgba(250, 247, 241, 0.95);
}

.match-chat__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.match-chat__composer input {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(250, 247, 241, 0.95);
  font: inherit;
  color: var(--ink);
}
