:root {
  --bg: #f2f5f9;
  --panel: #ffffff;
  --ink: #1a2533;
  --muted: #637083;
  --line: #d7dee8;
  --brand: #0f5db8;
  --accent: #0e8f69;
  --warn: #cb7f00;
  --font-h1: clamp(2rem, 5.4vw, 2.125rem);
  --font-h2: clamp(1.5rem, 4.6vw, 1.75rem);
  --font-h3: clamp(1.125rem, 4vw, 1.375rem);
  --font-body: 1rem;
  --font-small: 0.875rem;
  --font-caption: 0.8125rem;
  --line-body: 1.5rem;
  --line-small: 1.25rem;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --control-h: 46px;
  --radius-card: 14px;
  --radius-control: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-tabbar-space: 112px;
  --sidebar-w: 236px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #e6eef9 0%, var(--bg) 45%);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  font-size: var(--font-body);
  line-height: var(--line-body);
}

.wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: var(--space-2);
  font-size: var(--font-small);
}

nav a:hover {
  color: var(--brand);
}

#mobile-menu-btn {
  min-height: 38px;
  min-width: 38px;
  padding: 6px 10px;
  font-size: 1.02rem;
  line-height: 1;
}

main {
  padding: var(--space-4) 0 calc(var(--space-5) + var(--safe-bottom));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

h1,
h2,
h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-h1);
  line-height: 1.2;
}

h2 {
  font-size: var(--font-h2);
  line-height: 1.25;
}

h3 {
  font-size: var(--font-h3);
  line-height: 1.3;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.filter-chip-host {
  grid-template-columns: 1fr;
}

.filter-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.filter-group label.small {
  display: block;
  margin-bottom: 6px;
}

.filter-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.multi-check {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
}

.location-grid {
  grid-template-columns: 1fr;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: var(--control-h);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  font-size: var(--font-small);
}

input[type='checkbox'] {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  flex: 0 0 auto;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.consent-row {
  align-items: flex-start;
}

.consent-row a {
  color: var(--brand);
  text-decoration: underline;
}

button {
  border: 0;
  min-height: var(--control-h);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  font-size: var(--font-small);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid #9cc0eb;
}

button.ghost {
  background: #f5f9ff;
  color: var(--brand);
  border: 1px solid #c5dcf8;
}

button.warn {
  background: #fff8ec;
  color: var(--warn);
  border: 1px solid #f0cf8d;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.grid .full {
  grid-column: 1 / -1;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-3);
  margin-bottom: var(--space-2);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-1);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--muted);
  font-size: var(--font-caption);
}

.badge.open {
  border-color: #afe8d8;
  color: var(--accent);
  background: #eefbf6;
}

.badge.closed {
  border-color: #f0cf8d;
  color: var(--warn);
  background: #fff8ec;
}

.badge.trust {
  font-weight: 600;
}

.badge.trust-lv1 {
  border-color: #cfd6df;
  color: #6f7a87;
  background: #f7f9fb;
}

.badge.trust-lv2 {
  border-color: #c2d8ff;
  color: #2f6bff;
  background: #eef4ff;
}

.badge.trust-lv3 {
  border-color: #b7e5d4;
  color: #178b63;
  background: #eefaf5;
}

.badge.trust-lv4 {
  border-color: #f1d59a;
  color: #b47800;
  background: #fff8ea;
}

.badge.status-approved {
  border-color: #afe8d8;
  color: var(--accent);
  background: #eefbf6;
}

.badge.status-pending {
  border-color: #c5dcf8;
  color: var(--brand);
  background: #f1f7ff;
}

.badge.status-waitlist {
  border-color: #f0cf8d;
  color: #b47800;
  background: #fff8ec;
}

.badge.status-cancelled {
  border-color: #e3cad6;
  color: #a14b6e;
  background: #fff2f7;
}

.badge.status-cancel-requested {
  border-color: #f2d9aa;
  color: #9a6300;
  background: #fff8ed;
}

.small {
  color: var(--muted);
  font-size: var(--font-small);
  line-height: var(--line-small);
}

.auth-msg {
  margin: -4px 0 0;
  min-height: 16px;
}

.auth-msg.ok {
  color: var(--accent);
}

.auth-msg.error {
  color: #b4440f;
}

.auth-code-mask {
  -webkit-text-security: disc;
}

#auth-form,
.auth-apply-grid {
  grid-template-columns: 1fr;
}

#auth-form {
  margin-top: 12px;
}

.hp-wrap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.actions > * {
  width: 100%;
}

.actions > a {
  display: block;
}

.actions > a > button,
.actions > button {
  width: 100%;
}

.actions button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.toggle-row > * {
  width: 100%;
}

.toggle-row button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.map-panel {
  margin-top: 0;
  padding: 14px;
}

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

.map-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fcfeff;
}

.map-card h4 {
  margin: 0;
}

.applicant-list {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.manage-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.manage-sections .manage-section {
  order: 2;
}

.manage-sections .manage-section.recent-open {
  order: 1;
}

.applicant-list h4 {
  margin: 0 0 8px;
}

.external-apply-form {
  margin: 0 0 10px;
}

.external-apply-form input,
.external-apply-form select {
  min-height: 40px;
}

.external-apply-form button {
  min-height: 40px;
}

.payment-request-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  margin-bottom: 8px;
}

.payment-invite,
.payment-request-panel {
  margin-top: 10px;
}

.payment-kakao-card {
  border: 1px solid #f0dc53;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff9cc 0%, #fff3a6 100%);
  padding: 10px;
  margin: 8px 0 10px;
}

.payment-kakao-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  margin-bottom: 8px;
}

.payment-kakao-head span {
  font-size: 0.78rem;
  color: #5b4b00;
}

.payment-kakao-head strong {
  color: #2c2100;
  font-size: 1.45rem;
  line-height: 1.15;
}

.payment-kakao-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-kakao-body > div {
  border: 1px solid rgba(44, 33, 0, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-kakao-body span {
  font-size: 0.72rem;
  color: #6b5a10;
}

.payment-kakao-body strong {
  color: #2c2100;
  font-size: 0.9rem;
  word-break: break-all;
}

.match-rings {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}

.match-rings .status-ring.mini {
  width: 48px;
  height: 48px;
  --ring-size: 48px;
}

.match-rings .status-ring.mini::after {
  width: 33px;
  height: 33px;
}

.match-rings .status-ring.mini strong {
  font-size: 0.73rem;
}

.match-rings .status-ring.mini span {
  font-size: 0.62rem;
}

.match-date-strong {
  color: #15314f;
  font-size: 0.98rem;
  font-weight: 700;
}

.match-fee-strong {
  color: #0e5aab;
  font-size: 0.96rem;
  font-weight: 700;
}

.status-dashboard {
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.status-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.status-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.status-inline-tools {
  gap: 6px;
}

.status-hero h2 {
  margin: 0;
}

.status-apply-primary {
  width: 100%;
  display: block;
  background: #0e5aab;
  border-color: #0e5aab;
  color: #fff;
  font-weight: 700;
}

.status-apply-primary:hover {
  background: #0a4f99;
  border-color: #0a4f99;
}

.status-ring {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: conic-gradient(var(--brand) 0 var(--fill), #dfe7f2 var(--fill) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
}

.status-rings {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-ring.mini {
  width: 66px;
  height: 66px;
}

.status-ring.mini::after {
  inset: 7px;
}

.status-ring.mini strong {
  font-size: 0.86rem;
}

.status-ring.mini span {
  font-size: 0.68rem;
}

.status-ring::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: #fff;
}

.status-ring strong,
.status-ring span {
  position: relative;
  z-index: 1;
}

.status-ring strong {
  font-size: 1rem;
  line-height: 1.1;
}

.status-ring span {
  font-size: 0.72rem;
  color: var(--muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.status-metric {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.status-grid .status-metric.full {
  grid-column: 1 / -1;
}

.status-metric h3 {
  margin: 0;
  font-size: 0.92rem;
}

.status-metric p {
  margin: 4px 0 0;
}

.status-metric-top {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-main-line {
  margin: 0;
  font-size: 1.02rem;
  color: #2c3f56;
}

.status-main-line strong {
  font-size: 1.16rem;
  color: #113a67;
}

.status-kpi-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-kpi {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4dfef;
  border-radius: 999px;
  background: #f4f8ff;
  color: #53657d;
  font-size: 0.79rem;
  line-height: 1.1;
  padding: 4px 9px;
}

.status-participation-layout {
  margin-top: 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.status-participation-right .status-ring-wrap {
  margin-top: 0;
}

.status-participation-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.status-participation-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.status-participation-right .status-rings {
  justify-content: flex-end;
}

.status-emphasis {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #18395d;
}

.status-ring-wrap {
  margin-top: 8px;
}

.status-ring-wrap .status-rings {
  justify-content: flex-start;
}

.status-subbars {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.status-subbar-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.status-subbar-row .small {
  margin: 0;
  color: var(--muted);
}

.status-bar {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e5edf7;
  overflow: hidden;
}

.status-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f5db8 0%, #3b87dd 100%);
}

.status-bar.pending > span {
  background: linear-gradient(90deg, #0e8f69 0%, #42bd92 100%);
}

.status-bar.waitlist > span {
  background: linear-gradient(90deg, #b08217 0%, #d7ab48 100%);
}

.status-bar.cancel > span {
  background: linear-gradient(90deg, #cf5447 0%, #e98f85 100%);
}

.status-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.status-mini {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 6px 4px;
  text-align: center;
  min-width: 0;
}

.status-mini span {
  display: block;
  font-size: clamp(0.62rem, 1.35vw, 0.75rem);
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-mini strong {
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  line-height: 1.1;
}

.status-host-contact-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.status-host-contact-section {
  margin-top: 8px;
}

.status-host-contact-locked {
  position: relative;
}

.status-host-contact-locked .status-host-contact-item {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
}

.status-host-contact-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2a5f95;
  background: rgba(245, 249, 255, 0.72);
  border-radius: 10px;
  padding: 8px 12px;
}

.status-host-contact-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  min-width: 0;
}

.status-host-contact-item span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.1;
}

.status-host-contact-item strong {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  line-height: 1.2;
  color: #18395d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toggle-panel-gap {
  margin-top: 10px;
}

.applicant-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
  background: #fafcff;
}

.applicant-item.status-approved {
  border-color: #afe8d8;
  background: #f3fdf8;
}

.applicant-item.status-pending {
  border-color: #c5dcf8;
  background: #f5f9ff;
}

.applicant-item.status-waitlist {
  border-color: #f0cf8d;
  background: #fffaf1;
}

.applicant-item.status-cancel-requested {
  border-color: #f2d9aa;
  background: #fff9ef;
}

.applicant-item.status-cancelled {
  border-color: #e3cad6;
  background: #fff5f9;
}

.focus-highlight {
  border-color: #2e7bd8 !important;
  box-shadow: 0 0 0 3px rgba(46, 123, 216, 0.22), 0 8px 22px rgba(16, 54, 96, 0.14);
  animation: focusPulse 1.35s ease-out 1;
}

@keyframes focusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 123, 216, 0.42);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(46, 123, 216, 0);
  }
}

.applicant-main {
  margin-bottom: 6px;
}

.applicant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.applicant-head-left {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.applicant-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.applicant-meta-row,
.applicant-contact-row,
.applicant-intro {
  margin: 0;
}

.applicant-actions button {
  transition: opacity 0.15s ease, transform 0.12s ease, filter 0.15s ease, background 0.15s ease;
}

.applicant-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
}

.applicant-actions button {
  width: 100%;
}

.applicant-actions button:not(:disabled):active {
  transform: translateY(1px);
}

.applicant-actions button:disabled {
  opacity: 0.38;
  color: #8a97a8;
  border-color: #d5deea;
  background: #f2f5f9;
  filter: grayscale(0.15);
}

.guest-pipeline {
  margin-top: 8px;
  gap: 6px;
}

.applicant-item .guest-pipeline {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 5px;
}

.applicant-item .guest-pipeline::-webkit-scrollbar {
  display: none;
}

.applicant-item .guest-step {
  flex: 0 0 auto;
  font-size: 0.74rem;
  padding: 3px 8px;
}

.guest-step {
  background: #f6f9fe;
  border-color: #d4dfef;
  color: #73839a;
}

.guest-step.is-done {
  background: #eef8f3;
  border-color: #b9e2d1;
  color: #1f8e67;
}

.guest-step.is-active {
  background: #edf4ff;
  border-color: #4a90e2;
  color: #145fae;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #4a90e2, 0 0 0 2px rgba(74, 144, 226, 0.16);
  animation: pulse-active-step 1.4s ease-in-out infinite;
}

.applicant-item .guest-step.is-active {
  box-shadow: inset 0 0 0 1px #4a90e2, 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.applicant-actions button.next-action:not(:disabled) {
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
  filter: saturate(1.05);
  animation: pulse-next-action 1.2s ease-in-out infinite;
}

@keyframes pulse-active-step {
  0% {
    box-shadow: inset 0 0 0 1px #4a90e2, 0 0 0 2px rgba(74, 144, 226, 0.14);
  }
  50% {
    box-shadow: inset 0 0 0 1px #4a90e2, 0 0 0 4px rgba(74, 144, 226, 0.26);
  }
  100% {
    box-shadow: inset 0 0 0 1px #4a90e2, 0 0 0 2px rgba(74, 144, 226, 0.14);
  }
}

@keyframes pulse-next-action {
  0% {
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.14);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(74, 144, 226, 0.28);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-step.is-active,
  .applicant-actions button.next-action:not(:disabled) {
    animation: none;
  }
}

.match-card h3 {
  margin: 4px 0 2px;
}

.match-card[data-status-link] {
  cursor: pointer;
}

.match-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.match-facts span {
  white-space: nowrap;
}

.host-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

a.host-link:hover {
  text-decoration: underline;
}

.match-top-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
}

.match-main-left {
  min-width: 0;
  order: 2;
}

.match-main-left .match-side {
  align-items: flex-start;
}

.match-main-left .status-rings {
  justify-content: flex-start;
}

.match-detail-stack {
  margin-top: 8px;
  text-align: left;
}

.match-detail-stack p {
  margin: 2px 0;
}

.match-side-right {
  order: 3;
  align-items: center;
  text-align: center;
  min-width: 200px;
}

.match-info-rail {
  order: 1;
  position: relative;
  padding-right: 8px;
  text-align: left;
  align-self: stretch;
}

.match-info-rail::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: #d4dfef;
  border-radius: 2px;
}

.match-info-rail p {
  margin: 2px 0;
}

.match-info-rail h3 {
  margin: 2px 0;
}

.match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.match-title-row h3 {
  margin: 4px 0 2px;
}

.match-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.match-side .status-rings {
  justify-items: end;
  align-items: center;
}

.match-region,
.match-time {
  margin: 0;
}

.match-host {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

button.mini {
  padding: 6px 10px;
  font-size: 0.85rem;
}

.top-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

.top-title-row .in-title-row {
  margin: 0;
}

.title-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.title-subtools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.title-subtools a {
  text-decoration: none;
}

.guest-name-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #c5dcf8;
  border-radius: 999px;
  background: #f1f7ff;
  color: var(--brand);
  text-decoration: none;
  font-size: var(--font-caption);
}

.guest-name-link:hover {
  text-decoration: underline;
}

.profile-highlight-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-highlight-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-highlight-item span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.15;
}

.profile-highlight-item strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.profile-intro-box {
  margin-top: 10px;
  border: 1px dashed #cbd7e7;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
}

.hidden {
  display: none !important;
}

.host-wizard-head {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f9fcff;
}

.host-stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}

.host-step {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.host-step.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.host-step-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.host-quick-types {
  margin-bottom: 4px;
}

.host-choice-group {
  margin-top: 4px;
}

.host-time-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.host-time-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.host-time-col .row {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.host-time-input {
  width: 100%;
  max-width: none;
}

.host-time-range > .small {
  grid-column: 1 / -1;
  margin: 0;
}

.host-venue-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.host-venue-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.host-venue-option {
  text-align: left;
}

[data-host-venue-panel] .host-venue-option {
  width: 100%;
}

#flt-venue-suggest.host-venue-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#flt-venue-suggest .host-venue-option {
  width: auto;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.host-venue-option.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.filter-venue-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-venue-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 6px;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #c5dcf8;
  background: #f5f9ff;
  color: #1f5fa8;
  font-size: 0.76rem;
  line-height: 1;
}

.filter-venue-remove {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0;
  width: 10px;
  height: 10px;
  cursor: pointer;
}

.host-choice-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

[data-choice-group],
[data-match-type-group],
[data-court-type-group] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  width: 100%;
}

[data-choice-group] > *,
[data-match-type-group] > *,
[data-court-type-group] > * {
  width: 100%;
}

.host-count-wrap {
  display: grid;
  gap: 8px;
}

.host-recruit-line {
  display: grid;
  grid-template-columns: minmax(46px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.host-recruit-line > .small {
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.host-recruit-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.host-recruit-sep {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}

.host-recruit-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.host-recruit-cell > .small {
  margin: 0;
  white-space: nowrap;
  text-align: center;
  color: var(--muted);
}

.host-count-line {
  display: grid;
  grid-template-columns: minmax(42px, auto) 1fr;
  gap: 8px;
  align-items: center;
}

.host-count-line .small {
  margin: 0;
  white-space: nowrap;
  text-align: center;
}

.host-count-line input {
  text-align: center;
}

.host-count-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.host-count-controls.recruit-count-controls {
  grid-template-columns: minmax(40px, 0.9fr) minmax(64px, 1fr) auto minmax(40px, 0.9fr);
}

.host-count-controls-wrap {
  display: block;
}

.host-count-controls > * {
  width: 100%;
}

.host-recruit-cell .host-count-controls {
  gap: 6px;
}

.host-count-controls input {
  text-align: center;
}

.host-count-line button {
  min-height: 40px;
  padding: 6px 8px;
}

.host-count-controls button,
.host-count-controls input,
[data-recruit-adjust],
[data-recruit-input] {
  touch-action: manipulation;
}

.toggle-open-btn.is-open {
  border-width: 2px;
  border-color: #2f79d4;
  box-shadow: 0 0 0 2px rgba(47, 121, 212, 0.12);
}

.recruit-confirmed-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #a8c8f2;
  background: #eef5ff;
  color: #1f5fa8;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.host-inline-line {
  grid-template-columns: minmax(56px, auto) 1fr;
}

@media (max-width: 720px) {
  .host-count-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .host-count-controls.recruit-count-controls {
    grid-template-columns: minmax(36px, 0.85fr) minmax(56px, 1fr) auto minmax(36px, 0.85fr);
  }
  .host-count-controls button,
  .host-count-controls input {
    font-size: 16px;
  }
  .recruit-confirmed-chip {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.8rem;
  }
}

.status-extra-chips {
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.profile-inline-row {
  display: grid;
  grid-template-columns: minmax(88px, auto) 1fr;
  align-items: center;
  gap: 8px;
}

.host-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.city-picker {
  width: 100%;
  min-width: 0;
}

.city-picker-toggle {
  width: 100%;
  text-align: left;
}

.city-picker-panel {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 100%;
  min-width: 0;
  gap: 8px;
}

.city-picker-panel::-webkit-scrollbar {
  display: none;
}

.city-picker-panel .city-option {
  white-space: nowrap;
}

.city-option.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.host-inline-error {
  color: #b4440f;
  min-height: 18px;
  margin: 0;
}

[data-open-external-form] {
  width: 100%;
}

.host-optional {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fbfdff;
}

.host-optional summary {
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 26, 38, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.admin-modal {
  width: min(760px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.admin-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-modal-head h3 {
  margin: 0;
}

.admin-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-field span {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-modal-error {
  min-height: 18px;
  color: #b4440f;
}

.admin-modal-json {
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  overflow: auto;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-controls {
  margin-top: 10px;
}

.admin-controls .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.admin-stat-card strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 4px;
}

.admin-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-list-plain {
  margin: 0;
  padding-left: 18px;
}

.admin-list-plain li {
  margin: 4px 0;
}

.admin-bar-list {
  display: grid;
  gap: 8px;
}

.admin-bar-item {
  display: grid;
  gap: 4px;
}

.admin-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.admin-bar-head strong {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #edf2fb;
  overflow: hidden;
}

.admin-bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a7ff, #2f75cc);
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 18px 12px 14px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-sidebar-brand a {
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.55rem;
  line-height: 1;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.app-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
}

.app-sidebar-nav a.active {
  color: var(--brand);
  background: #f5f9ff;
  border-color: #c5dcf8;
  font-weight: 600;
}

.app-sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 36, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.mobile-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84vw, 330px);
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 12px 0 30px rgba(15, 26, 44, 0.24);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf2f8;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-nav a {
  text-decoration: none;
  color: var(--muted);
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-drawer-nav a.active {
  color: var(--brand);
  border-color: #c5dcf8;
  background: #f5f9ff;
  font-weight: 600;
}

.mobile-drawer-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf2f8;
}

textarea {
  min-height: 140px;
}

body.mobile-site {
  background: #f4f6fa;
}

body.mobile-site .wrap {
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
}

body.mobile-site .topbar {
  z-index: 30;
}

body.mobile-site .topbar-inner {
  min-height: 56px;
}

body.mobile-site .brand {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

body.mobile-site nav a {
  margin-left: 0;
  font-size: 0.78rem;
  white-space: nowrap;
}

body.mobile-site #main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

body.mobile-site #main-nav > * {
  flex: 0 1 auto;
  min-width: 0;
}

body.mobile-site #main-nav a.small {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mobile-site #main-nav button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.76rem;
}

body.mobile-site .nav-icon-svg,
body.mobile-site .nav-icon-svg svg {
  width: 18px;
  height: 18px;
}

body.mobile-site main {
  padding: 8px 0 calc(var(--mobile-tabbar-space) + var(--safe-bottom));
}

body.mobile-site #app::after {
  content: '';
  display: block;
  height: calc(var(--mobile-tabbar-space) + var(--safe-bottom));
}

body.mobile-site .panel {
  border-radius: 12px;
  padding: 10px;
}

body.desktop-site .topbar {
  margin-left: var(--sidebar-w);
}

body.desktop-site .topbar .wrap {
  width: min(1120px, calc(100vw - (var(--sidebar-w) + 44px)));
  max-width: none;
  margin: 0 0 0 24px;
  padding: 0;
}

body.desktop-site main.wrap {
  margin-left: calc(var(--sidebar-w) + 24px);
  width: min(1120px, calc(100vw - (var(--sidebar-w) + 44px)));
}

body.desktop-site #main-nav a {
  margin-left: 8px;
}

body.desktop-site #main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  justify-content: flex-end;
}

.alert-icon-btn {
  position: relative;
  min-width: 36px;
  min-height: 34px;
  padding: 4px 7px;
}

.nav-icon-btn {
  border-radius: 0;
  min-width: auto;
  min-height: auto;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  color: var(--ink);
  overflow: visible;
}

body.mobile-site #main-nav button.nav-icon-btn,
body.desktop-site #main-nav button.nav-icon-btn {
  min-height: auto;
  min-width: auto;
  padding: 0;
}

.nav-icon-svg {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #202b39;
}

.nav-icon-svg svg {
  width: 20px;
  height: 20px;
  display: block;
}

.alert-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5f45;
  color: #fff;
  font-size: 0.65rem;
  line-height: 17px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}

.alert-item h3 {
  margin: 0;
}

.inbox-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: -10px -10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7fafe;
}

.inbox-tabs a {
  margin: 0;
  padding: 14px 10px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.inbox-tabs a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.inbox-actions {
  margin-bottom: 10px;
}

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

.inbox-item {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

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

.inbox-item-top {
  align-items: center;
}

.inbox-chip-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 12px;
}

.inbox-chip-row button.active {
  background: #e9f2ff;
  color: var(--brand);
  border-color: #b8d6fb;
}

body.desktop-site #mobile-drawer,
body.desktop-site #mobile-drawer-backdrop {
  display: none !important;
}

.mobile-list-panel {
  margin-bottom: 72px;
}

.mobile-list-panel .filters {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 10px;
}

.mobile-list-panel .location-grid {
  grid-template-columns: 1fr;
}

.mobile-list-panel .match-card {
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.mobile-list-panel .match-card h3 {
  font-size: 1.02rem;
  line-height: 1.15;
}

.mobile-list-panel .match-card .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.mobile-list-panel .match-card .actions a {
  display: block;
}

.mobile-list-panel .match-card .actions a button,
.mobile-list-panel .match-card .actions > button {
  width: 100%;
}

.mobile-filter-row {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  width: 100%;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.mobile-filter-row::-webkit-scrollbar {
  display: none;
}

.mobile-chip {
  width: auto;
  flex: 0 0 auto;
  min-width: 62px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.9rem;
}

.applicant-flow-filter-row {
  margin: 6px 0 10px;
}

.applicant-flow-filter-row .mobile-chip {
  min-height: 24px;
  min-width: 0;
  padding: 2px 8px;
  font-size: var(--font-caption);
  line-height: 1.15;
  border-radius: 999px;
}

.mobile-list-panel .match-card.compact-card .badge {
  font-size: 0.69rem;
  padding: 2px 7px;
}

.mobile-list-panel .match-card.compact-card .match-facts {
  gap: 3px 6px;
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.2;
  justify-content: center;
}

.mobile-list-panel .match-card.compact-card .match-facts span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-list-panel .match-card.compact-card button {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.8rem;
}

.mobile-list-panel .match-card.compact-card .match-head {
  align-items: flex-start;
  gap: 6px;
}

.mobile-list-panel .match-card.compact-card .match-region {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.15;
}

.mobile-list-panel .match-card.compact-card .match-title-row.compact {
  margin-top: 2px;
  gap: 6px;
  align-items: center;
}

.mobile-list-panel .match-card.compact-card .match-side {
  min-width: 100px;
  gap: 4px;
  align-items: flex-end;
}

.mobile-list-panel .match-card.compact-card .compact-location {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-list-panel .match-card.compact-card .compact-capacity-line {
  margin: 3px 0 0;
  font-size: 0.74rem;
  line-height: 1.15;
}

.mobile-list-panel .match-card.compact-card .match-time.compact {
  margin: 3px 0 0;
  font-size: 0.74rem;
  line-height: 1.15;
}

.mobile-list-panel .match-card.compact-card .compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 6px;
}

.mobile-list-panel .match-card.compact-card .compact-grid span:nth-child(4),
.mobile-list-panel .match-card.compact-card .compact-grid span:nth-child(5) {
  grid-column: 1 / -1;
}

.mobile-list-panel .match-card.compact-card .match-date-strong {
  font-size: 0.86rem;
}

.mobile-list-panel .match-card.compact-card .match-fee-strong {
  font-size: 0.84rem;
}

.mobile-list-panel .match-card.compact-card-v2 {
  padding: 8px;
}

.mobile-list-panel .compact-v2-main {
  display: block;
  align-items: stretch;
}

.mobile-list-panel .compact-content {
  min-width: 0;
}

.mobile-list-panel .compact-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mobile-list-panel .compact-region {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-list-panel .match-card.compact-card-v2 .compact-location {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.mobile-list-panel .match-card.compact-card-v2 .match-time.compact {
  margin: 4px 0 0;
  font-size: 0.82rem;
}

.mobile-list-panel .compact-chip-grid {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mobile-list-panel .compact-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid #d7e0ed;
  border-radius: 999px;
  background: #f6f9fe;
  color: #58667a;
  font-size: 0.72rem;
  line-height: 1.15;
  padding: 3px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-list-panel .compact-chip.wide {
  width: 100%;
  border-radius: 8px;
  white-space: nowrap;
}

.mobile-list-panel .match-card.compact-card-v2 .badge {
  padding: 3px 8px;
  font-size: 0.74rem;
}

.mobile-list-panel .match-card[data-status-link] {
  cursor: pointer;
}

.my-activity-panel #my-applications .card {
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.my-activity-panel #my-applications .card h3 {
  margin-bottom: 4px;
}

.my-activity-panel #my-applications .row {
  margin-top: 6px;
}

.my-activity-panel #my-applications .actions {
  margin-top: 8px;
}

.mobile-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.mobile-tabbar a {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.73rem;
}

.mobile-tabbar a span:last-child {
  white-space: nowrap;
  line-height: 1.05;
  font-size: clamp(0.6rem, 2.5vw, 0.73rem);
}

.mobile-tabbar a.active {
  color: var(--brand);
  border-color: #c5dcf8;
  background: #f5f9ff;
  font-weight: 600;
}

.mobile-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 39, 0.42);
  z-index: 80;
  display: flex;
  align-items: flex-end;
}

.mobile-picker-sheet {
  width: 100%;
  max-height: 78vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 12px;
}

.mobile-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.filter-modal-nav {
  margin-bottom: 8px;
}

.filter-modal-nav .mobile-chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.mobile-picker-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

#flt-time-clear,
#flt-ntrp-clear,
#flt-career-clear {
  width: 100%;
  display: block;
  justify-self: stretch;
}

.host-time-range #flt-time-clear {
  grid-column: 1 / -1;
}

.mobile-picker-options .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.mobile-picker-options .row > * {
  width: 100%;
}

.mobile-picker-option.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.mobile-picker-custom {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.filter-ntrp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.filter-ntrp-grid > * {
  width: 100%;
}

.filter-range-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.filter-range-grid > * {
  width: 100%;
}

.range-filter {
  display: grid;
  gap: 8px;
}

.range-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.range-filter input[type='range'] {
  width: 100%;
  min-height: 28px;
  margin: 0;
}

.dual-range {
  position: relative;
  height: 24px;
  --range-inset: 10px;
}

.dual-range-track {
  position: absolute;
  left: var(--range-inset);
  right: var(--range-inset);
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #d9e2f1;
}

.dual-range-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--brand);
  left: 0;
  width: 100%;
}

.dual-range-input {
  position: absolute;
  left: var(--range-inset);
  right: var(--range-inset);
  top: 0;
  width: calc(100% - (var(--range-inset) * 2));
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  pointer-events: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.dual-range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.dual-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: #fff;
  margin-top: -6px;
  box-shadow: 0 1px 4px rgba(15, 26, 44, 0.25);
}

.dual-range-input::-moz-range-track {
  height: 4px;
  background: transparent;
}

.dual-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: #fff;
}

.host-date-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.host-date-popover {
  position: fixed;
  width: min(320px, calc(100vw - 16px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 14px 28px rgba(15, 26, 44, 0.22);
}

.host-date-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.host-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.host-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.host-date-empty {
  min-height: 34px;
}

.host-date-cell {
  min-height: 34px;
  padding: 0;
}

.host-date-cell.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

@media (max-width: 900px) {
  h1 {
    font-size: clamp(1.5rem, 5vw, 1.85rem);
  }

  h2 {
    font-size: clamp(1.22rem, 4.1vw, 1.5rem);
  }

  h3 {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
  }

  input,
  select,
  textarea,
  button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  button.mini {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  .actions {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  }

  .alert-icon-btn {
    min-width: 32px;
    min-height: 30px;
    font-size: 0.92rem;
    padding: 4px 6px;
  }

  .app-sidebar {
    display: none;
  }

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

  .filters.filter-chip-host,
  .mobile-list-panel .filters.filter-chip-host {
    grid-template-columns: 1fr;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .map-grid {
    grid-template-columns: 1fr;
  }

  .host-venue-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .city-picker-panel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .city-picker-panel .city-option {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .mobile-list-panel .city-picker-toggle {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.84rem;
  }

  .mobile-filter-row {
    gap: 6px;
  }

  .mobile-chip {
    min-width: 56px;
    min-height: 28px;
    padding: 3px 7px;
    font-size: 0.8rem;
  }

  .applicant-flow-filter-row .mobile-chip {
    min-height: 22px;
    padding: 2px 7px;
    font-size: 0.74rem;
  }

  .filter-ntrp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-range-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .match-card .card-top {
    gap: 6px;
  }

  .match-top-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .match-info-rail {
    border-right: 0;
    border-top: 1px solid #d4dfef;
    padding-right: 0;
    padding-top: 8px;
  }

  .match-info-rail::after {
    display: none;
  }

  .match-side-right {
    min-width: 0;
    align-items: flex-end;
    text-align: right;
  }

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

  .match-card .actions a {
    display: block;
  }

  .match-card .actions a button,
  .match-card .actions > button {
    width: 100%;
  }

  .match-facts {
    font-size: 0.88rem;
  }

  .applicant-head {
    align-items: flex-start;
    gap: 6px;
  }

  .applicant-name-row {
    gap: 4px;
  }

  .applicant-item .guest-step {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

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

  .applicant-actions button.mini {
    min-height: 28px;
    padding: 3px 7px;
    font-size: 0.74rem;
  }

  .my-activity-panel {
    padding: 14px;
  }

  .my-activity-panel h1 {
    margin-bottom: 8px;
    font-size: 1.24rem;
    line-height: 1.2;
  }

  .my-activity-panel #my-filters {
    margin-bottom: 8px;
  }

  .my-activity-panel #my-filters .mobile-filter-row {
    gap: 6px;
  }

  .my-activity-panel #my-filters .mobile-chip {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 0.78rem;
  }

  .my-activity-panel #my-applications .card {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .my-activity-panel #my-applications .card h3 {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .my-activity-panel #my-applications .small {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .my-activity-panel #my-applications .badge {
    padding: 2px 8px;
    font-size: 0.7rem;
  }

  .my-activity-panel #my-applications .guest-pipeline {
    gap: 4px;
    margin-top: 6px;
  }

  .my-activity-panel #my-applications .guest-step {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

  .my-activity-panel #my-applications .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .my-activity-panel #my-applications .actions > a {
    display: block;
  }

  .my-activity-panel #my-applications .actions > a > button,
  .my-activity-panel #my-applications .actions > button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .host-manage-panel {
    padding: 14px;
  }

  .host-manage-panel h1 {
    margin-bottom: 8px;
    font-size: 1.24rem;
    line-height: 1.2;
  }

  .host-manage-panel #host-manage-filters {
    margin-bottom: 8px;
  }

  .host-manage-panel #host-manage-filters .mobile-filter-row {
    gap: 6px;
  }

  .host-manage-panel #host-manage-filters .mobile-chip {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 0.78rem;
  }

  .host-manage-panel #host-events .card {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .host-manage-panel #host-events .card h3,
  .host-manage-panel #host-events .card h4 {
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .host-manage-panel #host-events .small {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .host-manage-panel #host-events .badge {
    padding: 2px 8px;
    font-size: 0.7rem;
  }

  .host-manage-panel #host-events .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .host-manage-panel #host-events .actions > a {
    display: block;
  }

  .host-manage-panel #host-events .actions > a > button,
  .host-manage-panel #host-events .actions > button {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .host-manage-panel #host-events .mobile-chip {
    min-height: 28px;
    padding: 3px 8px;
    font-size: 0.78rem;
  }

  .host-manage-panel #host-events .applicant-item {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  .host-manage-panel #host-events .applicant-item .guest-step {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

  .host-manage-panel #host-events .applicant-actions button.mini {
    min-height: 28px;
    padding: 3px 7px;
    font-size: 0.74rem;
  }

  .host-manage-panel #host-events .host-choice-btn {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.76rem;
  }

  .status-hero {
    grid-template-columns: 1fr;
  }

  .payment-kakao-body {
    grid-template-columns: 1fr;
  }

  .status-hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-inline-tools {
    width: 100%;
  }

  .status-inline-tools > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .status-inline-tools > * button,
  .status-inline-tools > button {
    width: 100%;
  }

  .status-ring {
    width: 76px;
    height: 76px;
    justify-self: end;
  }

  .status-rings {
    justify-content: flex-end;
  }

  .status-ring.mini {
    width: 58px;
    height: 58px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-participation-layout {
    grid-template-columns: 1fr;
  }

  .status-participation-right .status-rings {
    justify-content: flex-start;
  }

  .status-participation-head {
    justify-content: flex-start;
  }

  .status-mini-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .admin-modal-grid {
    grid-template-columns: 1fr;
  }

  .admin-controls .grid {
    grid-template-columns: 1fr;
  }

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

  .admin-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --font-h1: 1.7rem;
    --font-h2: 1.34rem;
    --font-h3: 1.06rem;
    --font-body: 0.95rem;
    --font-small: 0.81rem;
  }

  body.mobile-site .topbar-inner {
    min-height: 52px;
  }

  [data-choice-group],
  [data-match-type-group],
  [data-court-type-group] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-list-panel .match-card h3 {
    font-size: 1.08rem;
  }

  body.mobile-site .match-card .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .my-activity-panel {
    padding: 12px;
  }

  .my-activity-panel h1 {
    font-size: 1.16rem;
  }

  .my-activity-panel #my-filters .mobile-chip {
    min-height: 26px;
    padding: 2px 7px;
    font-size: 0.74rem;
  }

  .my-activity-panel #my-applications .card {
    padding: 9px;
  }

  .my-activity-panel #my-applications .actions > a > button,
  .my-activity-panel #my-applications .actions > button {
    min-height: 30px;
    font-size: 0.73rem;
  }

  .host-manage-panel {
    padding: 12px;
  }

  .host-manage-panel h1 {
    font-size: 1.16rem;
  }

  .host-manage-panel #host-manage-filters .mobile-chip {
    min-height: 26px;
    padding: 2px 7px;
    font-size: 0.74rem;
  }

  .host-manage-panel #host-events .card {
    padding: 9px;
  }

  .host-manage-panel #host-events .actions > a > button,
  .host-manage-panel #host-events .actions > button {
    min-height: 30px;
    font-size: 0.73rem;
  }
}
