.home-grid {
  max-width: 900px;
  padding-top: 48px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}
.welcome {
  grid-column: 1 / -1;
}
.welcome h1 {
  max-width: 720px;
}
.welcome > p:last-child {
  color: var(--muted);
}
.notice {
  grid-column: 1 / -1;
  padding: 13px 18px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  color: var(--accent-dark);
  background: var(--accent-soft);
  cursor: pointer;
}
.notice span {
  margin-right: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
}
.match-card,
.twin-summary,
.room-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}
.match-card {
  min-height: 350px;
  padding: 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  align-items: center;
}
.match-visual {
  position: relative;
  width: 164px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 90px 90px 66px 66px;
  color: white;
  background: linear-gradient(160deg, var(--accent), var(--accent-dark));
  font-size: 58px;
  font-weight: 600;
}
.match-visual:before,
.match-visual:after {
  content: "";
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--highlight);
}
.match-visual:before {
  left: -15px;
  top: 34px;
}
.match-visual:after {
  right: -12px;
  bottom: 29px;
  background: var(--brand-tint);
}
.match-card p,
.twin-summary p {
  color: var(--muted);
  line-height: 1.6;
}
.purpose-tabs {
  margin: 22px 0 14px;
  padding: 4px;
  display: flex;
  border-radius: 999px;
  background: var(--panel);
}
.purpose-tabs button {
  flex: 1;
  min-height: 39px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.purpose-tabs .selected {
  color: var(--accent-dark);
  background: white;
  box-shadow: 0 5px 15px rgba(32, 41, 68, 0.07);
  font-weight: 700;
}
.quota {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  text-align: center;
}
.twin-summary {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.spark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 17px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 22px;
}
.room-preview {
  grid-column: 1 / -1;
  padding: 28px;
  box-shadow: none;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-heading a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.room-card {
  min-height: 74px;
  padding: 12px 4px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.room-card:last-child {
  border-bottom: 0;
}
.room-card img {
  width: 52px;
  height: 52px;
  border-radius: 19px;
  object-fit: cover;
  background: var(--accent-soft);
}
.room-card p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-card time {
  color: var(--muted);
  font-size: 11px;
}
.empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--muted);
  text-align: center;
}
.empty span {
  margin-bottom: 9px;
  color: var(--accent-dark);
  font-size: 28px;
}
.empty p {
  margin: 0;
  line-height: 1.6;
}
.bottom-nav {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 20px;
  width: min(520px, calc(100% - 28px));
  height: 64px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 42px rgba(32, 41, 68, 0.1);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}
.bottom-nav a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 18px;
  color: var(--muted);
}
.bottom-nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.bottom-nav span {
  font-size: 20px;
}
.bottom-nav small {
  font-size: 10px;
}
.center-state {
  min-height: calc(100dvh - 120px);
  max-width: 580px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.center-state h1 {
  font-size: clamp(34px, 5vw, 48px);
}
.center-state > p:not(.eyebrow) {
  max-width: 480px;
  color: var(--muted);
  line-height: 1.7;
}
.search-orbit {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: rotate 8s linear infinite;
}
.search-orbit:before,
.search-orbit:after,
.search-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.search-orbit:before {
  inset: 26px;
  background: var(--accent-soft);
}
.search-orbit:after {
  width: 45px;
  height: 45px;
  left: 52px;
  top: 52px;
  background: var(--accent);
}
.search-orbit span {
  width: 20px;
  height: 20px;
  right: -10px;
  top: 60px;
  background: var(--warm);
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
