* {
  box-sizing: border-box;
}
:root {
  --bg: #f6f8fb;
  --surface: #fff;
  --line: #e5e9ef;
  --line2: #d8dee8;
  --text: #111827;
  --muted: #6b7280;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --soft: #eff6ff;
  --green: #15803d;
  --orange: #c2410c;
  --red: #b91c1c;
  --purple: #6d28d9;
  --dark: #111827;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    Pretendard,
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1500px;
  margin: auto;
  min-height: 70px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  min-width: 145px;
}
.brand-mark {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.6px;
  color: #172033;
}
.brand-mark span {
  color: var(--blue);
}
.brand-mark i {
  display: inline-block;
  font-style: normal;
  transform: rotate(7deg);
  transform-origin: 50% 75%;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex: 1;
}
.main-nav a {
  font-weight: 750;
  color: #293241;
  padding: 25px 2px 22px;
  position: relative;
  white-space: nowrap;
}
.main-nav a.active:after {
  content: "";
  height: 3px;
  background: var(--blue);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px 4px 0 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-box {
  width: 300px;
  height: 40px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: #fafbfc;
  display: flex;
  overflow: hidden;
}
.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 13px;
  flex: 1;
  min-width: 0;
}
.search-box button {
  width: 44px;
  border: 0;
  background: transparent;
  color: #667085;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7ebf0;
  color: #475569;
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
}
.avatar.lg {
  width: 86px;
  height: 86px;
  font-size: 25px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shell {
  max-width: 1500px;
  margin: auto;
  padding: 24px 28px 60px;
}
.page-width {
  max-width: 1180px;
  margin: auto;
  padding: 26px 28px 60px;
}
.card,
.panel,
.form-card,
.detail-card,
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.panel,
.card {
  padding: 18px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 0 18px;
}
.page-head h1 {
  font-size: 25px;
  margin: 0 0 6px;
}
.page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.btn {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font-weight: 750;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}
.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.btn.blue {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.btn.soft {
  border-color: #bfdbfe;
  background: var(--soft);
  color: var(--blue2);
}
.btn.danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: var(--red);
}
.btn.block {
  width: 100%;
}
.btn.sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.content-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}
.filter-panel h2,
.panel h2 {
  font-size: 16px;
  margin: 0 0 14px;
}
.filter-stack {
  display: grid;
  gap: 10px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-size: 12px;
  font-weight: 800;
  color: #374151;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  outline: 0;
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px #eff6ff;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.field.full {
  grid-column: 1/-1;
}
.meeting-skill-hint {
  margin-top: -8px;
}
.form-card {
  padding: 24px;
}
.form-section {
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}
.form-section h2 {
  font-size: 17px;
  margin: 0 0 15px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.hint,
.muted,
.subtle {
  color: var(--muted);
  font-size: 12px;
}
.hero {
  min-height: 220px;
  padding: 36px 42px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f7faff 52%, #edf5ff 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.hero h1 {
  margin: 8px 0 10px;
  font-size: 32px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -1px;
}
.hero p {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}
.hero-art {
  position: absolute;
  right: 42px;
  top: 28px;
  width: 205px;
  height: 155px;
  border: 1px solid #d6e6fb;
  border-radius: 50%;
  background:
    radial-gradient(circle at 78% 28%, #dbeafe 0 10px, transparent 11px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(219, 234, 254, 0.45));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.1);
  opacity: 0.9;
  transform: rotate(-3deg);
}
.hero-art:before {
  content: "";
  position: absolute;
  width: 72px;
  height: 106px;
  border: 8px solid #93baf5;
  border-radius: 50%;
  left: 38px;
  top: 20px;
  transform: rotate(-22deg);
}
.hero-art:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--blue);
  border-radius: 50%;
  right: 36px;
  top: 56px;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.toolbar h2 {
  font-size: 17px;
  margin: 0;
}
.meeting-list {
  display: grid;
  gap: 10px;
}
.meeting-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.meeting-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.thumb {
  height: 86px;
  border: 1px solid #edf0f4;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 36px;
  line-height: 1;
  filter: saturate(1.04);
}
.thumb.sport-table-tennis {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff7f7, #fee2e2);
}
.thumb.sport-badminton {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #f5f9ff, #dbeafe);
}
.thumb.sport-tennis {
  border-color: #d9f99d;
  background: linear-gradient(135deg, #fbfff4, #ecfccb);
}
.thumb.sport-football {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, #f4fff8, #dcfce7);
}
.thumb.sport-basketball {
  border-color: #fed7aa;
  background: linear-gradient(135deg, #fffaf5, #ffedd5);
}
.thumb.sport-baseball,
.thumb.sport-volleyball {
  border-color: #e2e8f0;
  background: linear-gradient(135deg, #fff, #f1f5f9);
}
.thumb.sport-running {
  border-color: #ddd6fe;
  background: linear-gradient(135deg, #faf8ff, #ede9fe);
}
.meeting-card h3 {
  margin: 8px 0 10px;
  font-size: 16px;
}
.meta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 12px;
  margin-top: 5px;
}
.meeting-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-end;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #bfdbfe;
  background: var(--soft);
  color: var(--blue);
}
.badge.green {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: var(--green);
}
.badge.orange {
  border-color: #fed7aa;
  background: #fff7ed;
  color: var(--orange);
}
.badge.red {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--red);
}
.badge.gray {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #64748b;
}
.badge.purple {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: var(--purple);
}
.right-rail {
  display: grid;
  gap: 14px;
}
.instagram-banner {
  position: relative;
  isolation: isolate;
  height: 220px;
  min-height: 220px;
  padding: 15px 18px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #111827;
  background: linear-gradient(145deg, #fff 0%, #f7f9fc 100%);
  box-shadow: 0 6px 18px rgb(15 23 42 / 4%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
/* .instagram-banner:hover {
  transform: translateY(-3px);
  border-color: #d6dce5;
  box-shadow: 0 18px 34px rgb(15 23 42 / 10%);
} */
.instagram-banner:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 3px;
}
.instagram-banner__label {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #8a94a5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 2px 0 rgb(15 23 42 / 4%);
}
.instagram-banner strong {
  position: relative;
  z-index: 1;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.055em;
}
.instagram-banner__description {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: #7b879b;
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}
.instagram-banner__cta {
  position: relative;
  z-index: 1;
  min-height: 36px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #111827;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgb(15 23 42 / 12%);
  transition: background 180ms ease;
}
.instagram-banner:hover .instagram-banner__cta {
  background: #273449;
}
.instagram-banner__circle {
  position: absolute;
  z-index: 0;
  width: 82px;
  height: 82px;
  right: -25px;
  bottom: 26px;
  border: 12px solid #dce2eb;
  border-radius: 50%;
  opacity: 0.55;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #8b94a3;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}
.detail-card {
  padding: 22px;
}
.detail-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.detail-title h1 {
  font-size: 27px;
  margin: 10px 0 8px;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 18px;
}
.info-item {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.info-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.info-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.info-item small {
  color: #8b94a3;
}
.description {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  white-space: pre-wrap;
  line-height: 1.7;
}
.sticky {
  position: sticky;
  top: 94px;
}
.action-stack {
  display: grid;
  gap: 8px;
}
.host-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.grow {
  flex: 1;
  min-width: 0;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.list-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.list-table th,
.list-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12.5px;
  vertical-align: middle;
}
.list-table th {
  color: #64748b;
  background: #fafbfc;
  font-weight: 800;
}
.list-table tr:last-child td {
  border-bottom: 0;
}
.section-stack {
  display: grid;
  gap: 16px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}
.profile-summary {
  text-align: center;
}
.profile-summary .avatar {
  margin: auto;
}
.profile-summary h2 {
  margin: 12px 0 4px;
}
.info-list {
  display: grid;
  margin-top: 18px;
  text-align: left;
}
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.info-row span {
  color: var(--muted);
}
.sport-list {
  display: grid;
  gap: 8px;
}
.skill-level-guide {
  margin: -6px 0 14px;
  line-height: 1.6;
}
.sport-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.sport-item small {
  display: block;
  color: #8b94a3;
  margin-top: 4px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.actions.end {
  justify-content: flex-end;
}
.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.danger-zone {
  border-color: #fecaca;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
}
.auth-card {
  width: min(100%, 460px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-brand {
  text-align: center;
  margin-bottom: 22px;
}
.auth-brand .brand-mark {
  font-size: 29px;
}
.auth-card h1 {
  font-size: 22px;
  margin: 0 0 7px;
}
.auth-card form {
  display: grid;
  gap: 13px;
}
.auth-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #64748b;
  font-size: 12px;
}
.status {
  min-height: 20px;
  font-size: 12px;
}
.status.error {
  color: var(--red);
}
.status.success {
  color: var(--green);
}
.profile-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
.profile-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}
.profile-dialog h2 {
  margin: 0 0 8px;
}
.profile-dialog > form {
  display: grid;
  gap: 14px;
}
.profile-dialog .form-actions {
  margin-top: 2px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.chat-sidebar {
  border-right: 1px solid var(--line);
  overflow: auto;
}
.chat-sidebar-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
}
.chat-room {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #f1f3f5;
  background: #fff;
  width: 100%;
  text-align: left;
}
.chat-room.active {
  background: #f4f8ff;
}
.chat-room p {
  margin: 4px 0 0;
  color: #8b94a3;
  font-size: 11px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-main-head {
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.messages {
  flex: 1;
  padding: 20px;
  background: #fafbfc;
  overflow: auto;
}
.message {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
}
.chat-profile-avatar {
  flex: 0 0 auto;
  text-decoration: none;
  cursor: pointer;
}
.bubble {
  max-width: 68%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.55;
}
.message.mine {
  justify-content: flex-end;
}
.message.mine .bubble {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.message-meta {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}
.chat-input {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: flex;
  gap: 8px;
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 10px 12px;
}
.member-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.member-pill {
  padding: 5px 8px;
  background: #f3f6fa;
  border-radius: 99px;
  font-size: 11px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: #111827;
  color: #fff;
  padding: 11px 15px;
  border-radius: 9px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.loading {
  opacity: 0.65;
  pointer-events: none;
}
.small-gap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.spacer {
  height: 12px;
}
@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 220px 1fr;
  }
  .right-rail {
    display: none;
  }
  .search-box {
    display: none;
  }
  .main-nav {
    gap: 18px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .sticky {
    position: static;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .chat-layout {
    grid-template-columns: 260px 1fr;
  }
}
@media (max-width: 760px) {
  .topbar-inner {
    padding: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    min-width: auto;
  }
  .main-nav {
    order: 3;
    width: 100%;
    overflow: auto;
  }
  .main-nav a {
    padding: 10px 0 12px;
  }
  .shell,
  .page-width {
    padding: 18px 14px 44px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    order: 2;
  }
  .hero {
    padding: 26px 22px;
  }
  .hero-art {
    display: none;
  }
  .meeting-card {
    grid-template-columns: 72px 1fr;
  }
  .meeting-side {
    grid-column: 2;
    flex-direction: row;
    gap: 8px;
  }
  .form-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-item:nth-child(odd) {
    border-right: 0;
  }
  .info-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .info-item:last-child {
    border-bottom: 0;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 220px;
  }
  .chat-main {
    height: 560px;
  }
  .top-actions .btn span.optional {
    display: none;
  }
}
