:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #222126;
  --muted: #707078;
  --line: #e7e6eb;
  --accent: #6657a7;
  --accent-deep: #554591;
  --accent-soft: #f0eef9;
  --blue: #1297e5;
  --danger: #bd4252;
  --danger-soft: #fff1f3;
  --success: #327a63;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(32, 28, 45, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
select,
summary {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: -0.02em;
}

::selection {
  color: #fff;
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid rgba(102, 87, 167, 0.3);
  outline-offset: 2px;
}

.shell,
.page-shell {
  width: min(100% - 32px, 920px);
  margin-inline: auto;
}

.page-shell {
  max-width: 760px;
}

.sr-only,
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: #fff;
  border-radius: 10px;
  background: var(--accent);
  font-size: 0.78rem;
}

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

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
}

.nav-link {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 11px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
}

.nav-link {
  color: var(--accent);
}

/* Messages */
.toast-stack {
  position: fixed;
  z-index: 100;
  top: 72px;
  right: 0;
  left: 0;
  pointer-events: none;
}

.toast {
  display: flex;
  max-width: 420px;
  padding: 12px 14px;
  margin-left: auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toast > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.toast p {
  margin: 0;
  font-size: 0.84rem;
}

.toast--success > span {
  background: var(--success);
}

/* Shared controls */
.button {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 16px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-weight: 750;
  line-height: 1.2;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button--compact {
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.button--primary {
  color: #fff;
  background: var(--accent);
}

.button--primary:hover {
  background: var(--accent-deep);
}

.button--ghost {
  color: var(--accent);
  border-color: #d8d3ea;
  background: var(--surface);
}

.button--contact {
  color: #fff;
  background: var(--accent);
}

/* Home */
.home {
  padding-top: 24px;
  padding-bottom: 48px;
}

.home-intro {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.overline,
.section-label,
.eyebrow {
  display: block;
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-intro h1 {
  margin: 0 0 4px;
  font-size: clamp(1.65rem, 8vw, 2.25rem);
  line-height: 1.2;
}

.home-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.listing-section {
  scroll-margin-top: 72px;
}

.list-toolbar {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.list-toolbar h2 {
  margin: 0;
  font-size: 1.25rem;
}

.result-count {
  padding: 4px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.72rem;
  white-space: nowrap;
}

.filter-panel {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.filter-panel summary {
  display: flex;
  min-height: 44px;
  padding: 10px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  font-size: 0.84rem;
  font-weight: 750;
}

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

.filter-panel summary::after {
  color: var(--muted);
  content: "＋";
  font-size: 1rem;
  font-weight: 400;
}

.filter-panel[open] summary::after {
  content: "−";
}

.filter-panel summary small {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.7rem;
}

.filter-form {
  display: grid;
  padding: 14px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.filter-form label {
  display: grid;
  gap: 5px;
}

.filter-form label > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-form input,
.filter-form select {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fbfbfc;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--accent);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-actions .button {
  flex: 1;
}

.filter-actions a {
  color: var(--muted);
  font-size: 0.8rem;
}

.card-list {
  display: grid;
  gap: 10px;
}

.match-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.match-card__link {
  display: grid;
  min-width: 0;
  padding: 10px;
  align-items: center;
  grid-template-columns: 82px minmax(0, 1fr) 14px;
  gap: 12px;
}

.match-card__image {
  position: relative;
  width: 82px;
  height: 92px;
  border-radius: 10px;
  background: #ecebf0;
  overflow: hidden;
}

.match-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-status {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 2px 6px;
  color: #fff;
  border-radius: 999px;
  background: rgba(32, 31, 37, 0.7);
  font-size: 0.58rem;
  font-style: normal;
  line-height: 1.5;
}

.match-card--matched {
  opacity: 0.76;
}

.match-card__body {
  display: block;
  min-width: 0;
}

.card-heading {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  gap: 7px;
}

.card-heading strong {
  max-width: 55%;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-heading small {
  padding: 2px 6px;
  color: var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.65rem;
  white-space: nowrap;
}

.card-meta,
.card-requirement {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.card-requirement {
  color: #4e4d54;
  font-size: 0.82rem;
}

.card-arrow {
  color: #aaa7b1;
  font-size: 1.45rem;
  line-height: 1;
}

.empty-state {
  padding: 38px 20px;
  text-align: center;
  border: 1px dashed #d8d6df;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.empty-state h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.pagination {
  display: grid;
  margin-top: 16px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}

.pagination a {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.pagination a:last-child {
  text-align: right;
}

.pagination small {
  color: var(--muted);
}

.list-note {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
}

/* Detail */
.detail-page,
.form-page {
  padding-top: 20px;
  padding-bottom: 48px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.profile-card,
.owner-panel,
.registration-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-card {
  overflow: hidden;
}

.detail-visual {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: #ecebf0;
  overflow: hidden;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  background: rgba(34, 33, 38, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
}

.detail-status--matched {
  background: rgba(80, 66, 133, 0.86);
}

.detail-content {
  padding: 22px 18px;
}

.detail-title {
  padding-bottom: 18px;
}

.detail-title h1 {
  margin: 0 0 4px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.detail-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.profile-section h2 {
  margin: 0 0 9px;
  font-size: 0.83rem;
}

.requirements-text {
  margin: 0;
  color: #444249;
  line-height: 1.75;
  white-space: pre-wrap;
}

.tag-row,
.check-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-tag {
  display: inline-flex;
  padding: 5px 9px;
  color: #55525c;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafd;
  font-size: 0.72rem;
}

.contact-card {
  display: flex;
  padding: 14px;
  margin-top: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 13px;
  background: var(--accent-soft);
}

.contact-card small,
.contact-card strong {
  display: block;
}

.contact-card small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.contact-card strong {
  font-size: 1.03rem;
}

.contact-card .button {
  flex: 0 0 auto;
  min-height: 40px;
  font-size: 0.78rem;
}

.contact-hint {
  margin: 9px 2px 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.matched-banner {
  padding: 15px;
  margin-top: 8px;
  border-radius: 13px;
  background: var(--accent-soft);
}

.matched-banner small {
  color: var(--accent);
  font-weight: 800;
}

.matched-banner h2 {
  margin: 3px 0 4px;
  font-size: 1rem;
}

.matched-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.owner-panel {
  padding: 18px;
  margin-top: 14px;
}

.owner-panel__heading {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.owner-panel__heading h2 {
  margin: 0;
  font-size: 1.05rem;
}

.match-form {
  display: grid;
  gap: 14px;
}

.owner-success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.owner-success p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Registration form */
.page-heading {
  margin-bottom: 16px;
}

.page-heading h1 {
  margin: 0 0 5px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.identity-notice,
.form-error-summary {
  padding: 13px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.identity-notice {
  border: 1px solid #d9d4ea;
  background: var(--accent-soft);
}

.form-error-summary {
  color: #8d3040;
  border: 1px solid #efcbd1;
  background: var(--danger-soft);
}

.identity-notice strong,
.identity-notice p,
.form-error-summary strong,
.form-error-summary p {
  display: block;
  margin: 0;
}

.identity-notice p,
.form-error-summary p {
  margin-top: 2px;
  color: var(--muted);
}

.registration-form {
  padding: 0 18px 20px;
}

.form-section {
  padding: 22px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.form-section legend {
  padding: 0;
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 800;
}

.two-columns,
.field {
  display: grid;
  gap: 12px;
}

.field {
  gap: 7px;
}

.field + .field {
  margin-top: 18px;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 750;
}

.field-label b {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #dcdbe1;
  border-radius: 11px;
  outline: none;
  background: #fcfcfd;
}

.field textarea {
  min-height: 126px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 87, 167, 0.08);
}

.field small,
.fieldset-hint,
.submit-note {
  color: var(--muted);
  font-size: 0.68rem;
}

.field--error input,
.field--error textarea,
.choice-grid--error,
.upload-box--error,
.agreement--error {
  border-color: var(--danger) !important;
}

.field--error small,
.inline-error {
  color: var(--danger);
}

.field-help-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.choice-grid {
  display: grid;
  padding: 3px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
}

.choice-tile {
  position: relative;
  display: grid;
  min-height: 76px;
  padding: 10px 6px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfbfc;
  cursor: pointer;
}

.choice-tile:has(input:checked) {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.choice-tile input,
.segmented-options input,
.check-chip-grid input,
.agreement input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-icon {
  font-size: 1rem;
}

.choice-tile strong {
  font-size: 0.78rem;
}

.segmented-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.segmented-options label,
.check-chip-grid label {
  position: relative;
  cursor: pointer;
}

.segmented-options span,
.check-chip-grid span {
  display: flex;
  min-height: 40px;
  padding: 7px 9px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfc;
  font-size: 0.75rem;
}

.segmented-options input:checked + span,
.check-chip-grid input:checked + span {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 750;
}

.check-chip-grid span {
  min-height: 36px;
  border-radius: 999px;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 96px;
  margin-top: 18px;
  padding: 10px;
  align-items: center;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  border: 1px dashed #cfcdd7;
  border-radius: 12px;
  background: #fafafd;
  cursor: pointer;
  overflow: hidden;
}

.upload-box > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-preview {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  overflow: hidden;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-preview i {
  color: var(--accent);
  font-size: 1.35rem;
  font-style: normal;
}

.upload-copy strong,
.upload-copy small {
  display: block;
}

.upload-copy strong {
  margin-bottom: 3px;
  font-size: 0.82rem;
}

.upload-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}

.agreement {
  position: relative;
  display: grid;
  padding: 16px 0;
  align-items: start;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.agreement > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: transparent;
  border: 1px solid #cbc9d1;
  border-radius: 6px;
  background: #fff;
  font-size: 0.7rem;
}

.agreement input:checked + span {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.agreement p {
  margin: 0;
  color: #55535b;
  font-size: 0.75rem;
}

.agreement--compact {
  padding: 10px 0;
}

.inline-error {
  margin: 7px 0 0;
  font-size: 0.7rem;
}

.button--submit {
  width: 100%;
}

.submit-note {
  margin: 9px 0 0;
  text-align: center;
}

/* Login */
.login-body {
  padding: 0;
  background: var(--bg);
}

.login-body main {
  min-height: 100svh;
}

.login-body .toast-stack {
  top: 20px;
}

.login-page {
  display: grid;
  min-height: 100svh;
  padding: 32px 16px;
  place-items: center;
}

.login-shell {
  width: min(100%, 420px);
}

.login-brand {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #4d4a55;
}

.login-brand > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: var(--accent);
  font-size: 0.7rem;
}

.login-brand strong {
  font-size: 0.9rem;
}

.login-brand small {
  color: var(--muted);
  font-size: 0.68rem;
}

.login-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 5px;
  font-size: 1.55rem;
}

.login-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

.button--qq {
  width: 100%;
  color: #fff;
  background: var(--blue);
}

.button--qq > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.64rem;
}

.login-privacy {
  margin: 18px 0 0;
  padding-top: 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
}

.oauth-unavailable {
  padding: 13px;
  color: #8d3040;
  border: 1px solid #efcbd1;
  border-radius: 11px;
  background: var(--danger-soft);
}

.oauth-unavailable p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.login-back {
  display: block;
  margin-top: 15px;
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
}

/* Error and footer */
.error-page {
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}

.error-code {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.error-page h1 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.error-page p {
  margin-bottom: 20px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-inner form {
  margin: 0;
}

.footer-inner button {
  padding: 0;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: inherit;
}

@media (min-width: 720px) {
  .shell,
  .page-shell {
    width: min(100% - 48px, 920px);
  }

  .header-inner {
    min-height: 66px;
  }

  .home {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .home-intro {
    margin-bottom: 32px;
  }

  .filter-form {
    align-items: end;
    grid-template-columns: minmax(180px, 1.7fr) repeat(3, minmax(110px, 1fr)) auto;
  }

  .filter-actions .button {
    flex: none;
  }

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-page {
    max-width: 980px;
  }

  .profile-card {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
  }

  .detail-visual,
  .detail-visual img {
    max-height: none;
  }

  .detail-visual {
    min-height: 520px;
    aspect-ratio: auto;
  }

  .detail-visual img {
    height: 100%;
    object-fit: cover;
  }

  .detail-content {
    padding: 30px;
  }

  .owner-panel {
    padding: 24px;
  }

  .registration-form {
    padding-right: 28px;
    padding-bottom: 26px;
    padding-left: 28px;
  }

  .two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .two-columns .field + .field {
    margin-top: 0;
  }

  .segmented-options {
    grid-template-columns: repeat(4, 1fr);
  }

  .match-form {
    align-items: end;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  }

  .match-form .inline-error {
    grid-column: 2;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .home-intro .button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .contact-card {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-card .button {
    width: 100%;
  }

  .owner-success {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
