/* 팜시크릿 마이페이지 — 좌측 사이드바 + 우측 콘텐츠
 * 그룹별(약사 / 공인중개사 / 분양사업자 / 기업) 메뉴 분기
 */

/* ═════════════════════════════════════════════
   레이아웃 셸
   ═════════════════════════════════════════════ */
.ps-mp-body { background: #f5f6f8; }

.ps-mp-main-wrap {
  padding: 28px 16px 80px;
}
.ps-mp-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* ═════════════════════════════════════════════
   좌측 사이드바
   ═════════════════════════════════════════════ */
.ps-mp-aside {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
}

.ps-mp-profile {
  padding: 20px 18px 16px;
  background: linear-gradient(180deg, #fffbed 0%, #fff 100%);
  border-bottom: 1px solid #f0f0f3;
}
.ps-mp-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.ps-mp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FE691B 0%, #CC4F0E 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ps-mp-profile-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 2px;
  letter-spacing: -0.015em;
}
.ps-mp-profile-email {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
  word-break: break-all;
}

.ps-mp-profile-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ps-mp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4b5563;
}
.ps-mp-chip--group {
  background: var(--color-brand-soft);
  border-color: rgba(254, 105, 27, 0.25);
  color: var(--color-brand-dark);
}
.ps-mp-chip--tier-verified {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.ps-mp-chip--tier-general {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.ps-mp-chip--tier-visitor {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #6b7280;
}

/* 사이드바 메뉴 */
.ps-mp-nav {
  padding: 12px 8px 16px;
}
.ps-mp-nav-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 10px 7px;
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
}
.ps-mp-nav-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #eef0f3, transparent);
}
.ps-mp-nav-list + .ps-mp-nav-section { margin-top: 2px; }
.ps-mp-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.ps-mp-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  font-size: 14px;
  color: #374151;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: -0.01em;
  position: relative;
  transition: background 0.12s, color 0.12s;
}
.ps-mp-nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}
.ps-mp-nav-link.is-active {
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(254, 105, 27, 0.16);
}
.ps-mp-nav-link.is-active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--color-brand);
}
.ps-mp-nav-link.is-active .ps-mp-nav-icon { transform: scale(1.04); }
.ps-mp-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f3f4f6;
  transition: background 0.12s, transform 0.12s;
}
.ps-mp-nav-link:hover .ps-mp-nav-icon { background: #e5e7eb; }
.ps-mp-nav-link.is-active .ps-mp-nav-icon {
  background: rgba(254, 105, 27, 0.14);
}
.ps-mp-nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 1px 2px -1px rgba(254, 105, 27, 0.6);
}
.ps-mp-nav-badge--mute {
  background: #eef0f3;
  color: #6b7280;
  box-shadow: none;
}

.ps-mp-nav[data-group="pharmacist"] .group-only:not([data-allow~="pharmacist"]),
.ps-mp-nav[data-group="broker"]     .group-only:not([data-allow~="broker"]),
.ps-mp-nav[data-group="developer"]  .group-only:not([data-allow~="developer"]),
.ps-mp-nav[data-group="enterprise"] .group-only:not([data-allow~="enterprise"]) {
  display: none;
}

/* ═════════════════════════════════════════════
   우측 콘텐츠 영역
   ═════════════════════════════════════════════ */
.ps-mp-main {
  min-width: 0;
}

.ps-mp-pagehead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.ps-mp-pagehead-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
  margin: 0 0 5px;
}
.ps-mp-pagehead-desc {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}
.ps-mp-pagehead-desc strong { font-weight: 700; color: #1f2937; }
.ps-mp-pagehead-desc .ps-mp-hl { color: var(--color-brand-dark); }
.ps-mp-pagehead-actions {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

/* 액션 버튼 */
.ps-mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 40px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ps-mp-btn--primary {
  background: var(--color-brand);
  color: #fff;
}
.ps-mp-btn--primary:hover { background: var(--color-brand-dark); }
.ps-mp-btn--ghost {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}
.ps-mp-btn--ghost:hover { border-color: var(--color-brand); color: var(--color-brand-dark); }
.ps-mp-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ═════════════════════════════════════════════
   대시보드 — 인증 알림 배너
   ═════════════════════════════════════════════ */
.ps-mp-verify-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  padding-left: 21px;
  background: linear-gradient(135deg, #fffbed 0%, #ffeec8 100%);
  border: 1px solid #FDE7A8;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.ps-mp-verify-banner::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #f5a623;
}
.ps-mp-verify-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #FDE7A8;
  box-shadow: 0 2px 6px -3px rgba(245, 166, 35, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
}
.ps-mp-verify-banner-body { flex: 1; min-width: 0; }
.ps-mp-verify-banner-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 3px;
  letter-spacing: -0.015em;
}
.ps-mp-verify-banner-desc {
  font-size: 13px;
  color: #4b5563;
  margin: 0;
}
.ps-mp-verify-banner-desc strong { color: var(--color-brand-dark); }

/* ═════════════════════════════════════════════
   대시보드 — 위젯 그리드
   ═════════════════════════════════════════════ */
.ps-mp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.ps-mp-stat-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.ps-mp-stat-card::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #e5e7eb;
  opacity: 0;
  transition: opacity 0.14s;
}
.ps-mp-stat-card:hover {
  border-color: #e0e2e7;
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.28);
  transform: translateY(-2px);
}
.ps-mp-stat-card:hover::after { opacity: 1; }
.ps-mp-stat-card:hover .ps-mp-stat-chip { transform: scale(1.05); }
.ps-mp-stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: -0.01em;
}
.ps-mp-stat-chip {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  background: #f3f4f6;
  flex-shrink: 0;
  transition: transform 0.14s;
}
/* 카드별 아이콘 칩 / 인디케이터 색상 */
.ps-mp-stat-card--watch .ps-mp-stat-chip { background: #fff7ed; }
.ps-mp-stat-card--watch::after { background: var(--color-brand); }
.ps-mp-stat-card--match .ps-mp-stat-chip { background: #eff6ff; }
.ps-mp-stat-card--match::after { background: #3b82f6; }
.ps-mp-stat-card--deal .ps-mp-stat-chip { background: #ecfeff; }
.ps-mp-stat-card--deal::after { background: #06b6d4; }
.ps-mp-stat-card--job .ps-mp-stat-chip { background: #f5f3ff; }
.ps-mp-stat-card--job::after { background: #8b5cf6; }
.ps-mp-stat-num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ps-mp-stat-num em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  margin-left: 3px;
}
.ps-mp-stat-meta {
  font-size: 12px;
  color: #9ca3af;
}
.ps-mp-stat-meta strong {
  color: var(--color-brand-dark);
  font-weight: 700;
}

/* ═════════════════════════════════════════════
   섹션 카드 (위젯 박스)
   ═════════════════════════════════════════════ */
.ps-mp-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.ps-mp-row--equal { grid-template-columns: 1fr 1fr; }

.ps-mp-card {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 18px 20px;
}
.ps-mp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid #f3f4f6;
}
.ps-mp-card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.015em;
}
.ps-mp-card-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.12s, gap 0.12s;
}
.ps-mp-card-more:hover { color: var(--color-brand-dark); gap: 5px; }

/* 리스트 (관심 매물, 알림, 메시지 등) */
.ps-mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.ps-mp-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.12s;
}
.ps-mp-list-item:hover { background: #f9fafb; }
.ps-mp-list-item:hover .ps-mp-list-thumb {
  border-color: rgba(254, 105, 27, 0.25);
}
.ps-mp-list-item:hover .ps-mp-list-time { color: var(--color-brand-dark); }

.ps-mp-list-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7f8fa 0%, #eef0f3 100%);
  border: 1px solid #eef0f3;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: border-color 0.12s;
}
.ps-mp-list-body {
  flex: 1;
  min-width: 0;
}
.ps-mp-list-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 3px;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ps-mp-list-meta {
  font-size: 12.5px;
  color: #6b7280;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ps-mp-list-meta span + span::before {
  content: '·';
  margin-right: 6px;
  color: #d1d5db;
}
.ps-mp-list-time {
  font-size: 12px;
  color: #9ca3af;
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* 배지 (상태) */
.ps-mp-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.ps-mp-badge--new { background: #fef2f2; color: #b91c1c; }
.ps-mp-badge--progress { background: #eff6ff; color: #1d4ed8; }
.ps-mp-badge--done { background: #ecfdf5; color: #047857; }
.ps-mp-badge--wait { background: #fefce8; color: #a16207; }
.ps-mp-badge--direct { background: #fff7ed; color: #c2410c; }
.ps-mp-badge--broker { background: #eef2ff; color: #4338ca; }

/* 빈 상태 */
.ps-mp-empty {
  padding: 24px 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 13px;
}
.ps-mp-empty-emoji { display: block; font-size: 28px; margin-bottom: 6px; }

/* 빠른 액션 */
.ps-mp-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.ps-mp-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 15px 14px 13px;
  background: #fafafa;
  border: 1px solid #ececf0;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.ps-mp-quick-btn:hover {
  background: var(--color-brand-soft);
  border-color: rgba(254, 105, 27, 0.30);
  box-shadow: 0 10px 22px -16px rgba(254, 105, 27, 0.55);
  transform: translateY(-2px);
}
.ps-mp-quick-btn:hover .ps-mp-quick-icon {
  background: #fff;
  border-color: rgba(254, 105, 27, 0.30);
}
.ps-mp-quick-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  background: #fff;
  border: 1px solid #eef0f3;
  transition: background 0.14s, border-color 0.14s;
}
.ps-mp-quick-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
}
.ps-mp-quick-sub {
  font-size: 11.5px;
  color: #6b7280;
}

/* 진행 단계 (거래) */
.ps-mp-steps {
  display: flex;
  gap: 4px;
  margin: 8px 0 0;
  list-style: none;
  padding: 0;
}
.ps-mp-steps li {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: #e5e7eb;
}
.ps-mp-steps li.is-done { background: var(--color-brand); }

/* ═════════════════════════════════════════════
   매물관리 페이지
   ═════════════════════════════════════════════ */

/* 요약 5칸 */
.ps-mp-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.ps-mp-summary .ps-mp-stat-card { padding: 14px 16px; }
.ps-mp-summary .ps-mp-stat-num { font-size: 22px; }

/* 필터바 */
.ps-mp-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ps-mp-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.ps-mp-tab {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.12s, color 0.12s;
}
.ps-mp-tab:hover { color: #111827; }
.ps-mp-tab.is-active {
  background: #111827;
  color: #fff;
}
.ps-mp-tab-count {
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.7;
}

.ps-mp-filter-right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.ps-mp-select {
  appearance: none;
  height: 36px;
  padding: 0 32px 0 12px;
  font-size: 13px;
  color: #374151;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center / 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.ps-mp-select:hover { border-color: #9ca3af; }
.ps-mp-select:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(254, 105, 27, 0.10); }
.ps-mp-search-input {
  height: 36px;
  padding: 0 12px 0 32px;
  width: 220px;
  font-size: 13px;
  color: #111827;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat left 10px center / 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
}
.ps-mp-search-input:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(254, 105, 27, 0.10); }

/* 매물 리스트 */
.ps-mp-listings {
  display: grid;
  gap: 12px;
}
.ps-mp-listing {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  align-items: center;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ps-mp-listing:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.10);
}
.ps-mp-listing-thumb {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.ps-mp-listing-thumb-flag {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.7);
  color: #fff;
  letter-spacing: -0.01em;
}
.ps-mp-listing-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ps-mp-listing-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ps-mp-listing-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.015em;
}
.ps-mp-listing-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9ca3af;
}
.ps-mp-listing-meta-line {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}
.ps-mp-listing-meta-line strong { color: #111827; font-weight: 600; }
.ps-mp-listing-tags {
  display: inline-flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.ps-mp-listing-stats {
  display: inline-flex;
  gap: 14px;
  margin-top: 2px;
}
.ps-mp-listing-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}
.ps-mp-listing-stat strong {
  color: #111827;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 13px;
}

.ps-mp-listing-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.ps-mp-listing-expire {
  font-size: 12px;
  color: #6b7280;
  font-family: var(--font-mono);
}
.ps-mp-listing-expire--soon { color: #b91c1c; font-weight: 600; }
.ps-mp-listing-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ps-mp-listing-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  cursor: pointer;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.ps-mp-listing-action:hover { border-color: var(--color-brand); color: var(--color-brand-dark); }
.ps-mp-listing-action--primary {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}
.ps-mp-listing-action--primary:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); color: #fff; }
.ps-mp-listing-action--ghost {
  border-style: dashed;
}
.ps-mp-listing-action--danger:hover { border-color: #ef4444; color: #b91c1c; }

/* 빈 상태 (매물관리) */
.ps-mp-empty-card {
  padding: 56px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
}
.ps-mp-empty-emoji-lg {
  font-size: 40px;
  margin-bottom: 10px;
  display: block;
}
.ps-mp-empty-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.ps-mp-empty-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 14px;
}

/* 페이지네이션 */
.ps-mp-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
}
.ps-mp-pager-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-mono);
}
.ps-mp-pager-btn:hover { border-color: #9ca3af; }
.ps-mp-pager-btn.is-active { background: #111827; color: #fff; border-color: #111827; }

/* ═════════════════════════════════════════════
   거래 (deals)
   ═════════════════════════════════════════════ */
.ps-mp-deals { display: grid; gap: 10px; }
.ps-mp-deal-group-head {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  margin: 14px 4px 8px;
}
.ps-mp-deal-group-head:first-child { margin-top: 0; }

.ps-mp-deal {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  align-items: start;
  text-decoration: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ps-mp-deal:hover { border-color: #d1d5db; box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.10); }
.ps-mp-deal-thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.ps-mp-deal-body { min-width: 0; }
.ps-mp-deal-title-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.ps-mp-deal-title {
  font-size: 15px; font-weight: 700;
  color: #111827; margin: 0;
  letter-spacing: -0.015em;
}
.ps-mp-deal-counterparty {
  font-size: 12.5px; color: #6b7280;
  margin: 0 0 8px;
}
.ps-mp-deal-counterparty strong { color: #1f2937; font-weight: 600; }
.ps-mp-deal .ps-mp-steps { margin: 8px 0 10px; }
.ps-mp-deal-preview {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #4b5563;
  background: #f9fafb;
  padding: 9px 12px;
  border-radius: 8px;
  min-width: 0;
}
.ps-mp-deal-preview-from { font-weight: 600; color: #1f2937; flex-shrink: 0; }
.ps-mp-deal-preview-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ps-mp-deal-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.ps-mp-deal-time { font-size: 12px; color: #9ca3af; font-family: var(--font-mono); }
.ps-mp-deal-unread {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  padding: 0 7px;
  background: var(--color-brand);
  color: #fff;
  font-size: 11.5px; font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 999px;
}

/* ═════════════════════════════════════════════
   섹션 카드 (프로필 / 설정 폼)
   ═════════════════════════════════════════════ */
.ps-mp-section {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 24px 26px;
  margin-bottom: 14px;
}
.ps-mp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}
.ps-mp-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.ps-mp-section-desc { font-size: 13px; color: #6b7280; margin: 0; }

.ps-mp-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ps-mp-field-grid--full { grid-template-columns: 1fr; }
.ps-mp-field-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ps-mp-field-block > label {
  font-size: 13px; font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
}
.ps-mp-field-block .label-req::after {
  content: '*'; margin-left: 3px;
  color: var(--color-brand);
}

.ps-mp-input,
.ps-mp-textarea {
  width: 100%;
  font-family: var(--font-sans);
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-size: 14px;
}
.ps-mp-input { height: 44px; padding: 0 14px; }
.ps-mp-textarea { min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.ps-mp-input:hover,
.ps-mp-textarea:hover { border-color: #9ca3af; }
.ps-mp-input:focus,
.ps-mp-textarea:focus { border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(254, 105, 27, 0.10); }
.ps-mp-input::placeholder,
.ps-mp-textarea::placeholder { color: #9ca3af; }
.ps-mp-input:disabled { background: #f9fafb; color: #6b7280; cursor: not-allowed; }

.ps-mp-input-suffix { position: relative; }
.ps-mp-input-suffix .ps-mp-input { padding-right: 50px; }
.ps-mp-input-suffix-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #6b7280;
  pointer-events: none;
}

.ps-mp-help-line { font-size: 12px; color: #6b7280; margin: 4px 0 0; line-height: 1.5; }
.ps-mp-help-line--err { color: #b91c1c; }
.ps-mp-help-line--ok { color: #047857; }

/* 인증 상태 카드 */
.ps-mp-verify-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.ps-mp-verify-row--ok { background: #ecfdf5; border-color: #a7f3d0; }
.ps-mp-verify-row--pending { background: #fefce8; border-color: #fde68a; }
.ps-mp-verify-row--err { background: #fef2f2; border-color: #fecaca; }
.ps-mp-verify-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ps-mp-verify-text { flex: 1; min-width: 0; }
.ps-mp-verify-text strong { display: block; font-size: 14px; color: #111827; font-weight: 700; margin-bottom: 2px; }
.ps-mp-verify-text small { font-size: 12.5px; color: #6b7280; }

/* 파일 업로드 */
.ps-mp-upload {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 26px 16px;
  border: 1.5px dashed #d1d5db;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.ps-mp-upload:hover { border-color: var(--color-brand); background: var(--color-brand-soft); }
.ps-mp-upload-icon { font-size: 28px; }
.ps-mp-upload-text { font-size: 13.5px; font-weight: 600; color: #374151; }
.ps-mp-upload-sub { font-size: 12px; color: #6b7280; }
.ps-mp-upload-file {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 10px;
}
.ps-mp-upload-file-emoji { font-size: 20px; }
.ps-mp-upload-file-meta { flex: 1; min-width: 0; }
.ps-mp-upload-file-name { font-size: 13px; font-weight: 600; color: #111827; }
.ps-mp-upload-file-size { font-size: 12px; color: #9ca3af; font-family: var(--font-mono); }
.ps-mp-upload-file-remove {
  font-size: 18px; color: #9ca3af;
  background: transparent;
  border: 0; cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.ps-mp-upload-file-remove:hover { color: #b91c1c; background: #fef2f2; }

/* 마케팅 채널 토글 */
.ps-mp-channel-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.ps-mp-channel-row:last-child { border-bottom: 0; }
.ps-mp-channel-info { flex: 1; min-width: 0; }
.ps-mp-channel-info strong { display: block; font-size: 14px; color: #111827; font-weight: 700; margin-bottom: 2px; }
.ps-mp-channel-info small { font-size: 12.5px; color: #6b7280; }
.ps-mp-toggle {
  position: relative;
  width: 42px; height: 24px;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
}
.ps-mp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ps-mp-toggle-track {
  position: absolute; inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.15s;
}
.ps-mp-toggle-track::after {
  content: ''; position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  transition: transform 0.15s;
}
.ps-mp-toggle input:checked + .ps-mp-toggle-track { background: var(--color-brand); }
.ps-mp-toggle input:checked + .ps-mp-toggle-track::after { transform: translateX(18px); }

/* 위험 영역 */
.ps-mp-danger {
  border-color: #fecaca !important;
  background: #fef2f2;
}
.ps-mp-danger .ps-mp-section-title { color: #b91c1c; }
.ps-mp-btn--danger {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.ps-mp-btn--danger:hover { background: #fef2f2; border-color: #fca5a5; }

/* ═════════════════════════════════════════════
   매물 등록 — Stepper, 거래방식 큰 카드
   ═════════════════════════════════════════════ */
.ps-mp-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  list-style: none;
  padding: 0;
}
.ps-mp-stepper-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 10px;
  font-size: 13px;
  color: #6b7280;
}
.ps-mp-stepper-item.is-done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}
.ps-mp-stepper-item.is-active {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
  font-weight: 700;
}
.ps-mp-stepper-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.ps-mp-stepper-item.is-done .ps-mp-stepper-num {
  background: #10b981; border-color: #10b981; color: #fff;
}
.ps-mp-stepper-item.is-active .ps-mp-stepper-num {
  background: var(--color-brand); border-color: var(--color-brand); color: #fff;
}

/* 거래방식 큰 카드 (직거래 / 중개의뢰) */
.ps-mp-deal-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ps-mp-deal-type-card {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 20px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ps-mp-deal-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.ps-mp-deal-type-icon { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.ps-mp-deal-type-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
}
.ps-mp-deal-type-desc {
  font-size: 13px; color: #6b7280;
  line-height: 1.55;
  word-break: keep-all;
}
.ps-mp-deal-type-card:has(input:checked) {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  box-shadow: 0 0 0 3px rgba(254, 105, 27, 0.10);
}
.ps-mp-deal-type-card:has(input:checked) .ps-mp-deal-type-name { color: var(--color-brand-dark); }

/* 폼 푸터 (취소 / 임시저장 / 등록) */
.ps-mp-form-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.ps-mp-form-foot-left { color: #6b7280; font-size: 12.5px; }
.ps-mp-form-foot-right { display: inline-flex; gap: 8px; }

/* ═════════════════════════════════════════════
   반응형
   ═════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ps-mp-summary { grid-template-columns: repeat(3, 1fr); }
  .ps-mp-summary .ps-mp-stat-card:nth-child(n+4) { display: none; }
  .ps-mp-listing { grid-template-columns: 72px 1fr; }
  .ps-mp-listing-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
    margin-top: 6px;
  }
}
@media (max-width: 1024px) {
  .ps-mp-shell { grid-template-columns: 200px 1fr; gap: 18px; }
  .ps-mp-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-mp-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ps-mp-shell { grid-template-columns: 1fr; }
  .ps-mp-aside {
    position: static;
    margin-bottom: 12px;
  }
  .ps-mp-pagehead { flex-direction: column; align-items: stretch; }
  .ps-mp-pagehead-actions { justify-content: flex-end; }
  .ps-mp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ps-mp-stat-num { font-size: 22px; }
  .ps-mp-quick { grid-template-columns: 1fr 1fr; }
  .ps-mp-summary { grid-template-columns: 1fr 1fr; }
  .ps-mp-summary .ps-mp-stat-card:nth-child(n+3) { display: revert; }
  .ps-mp-filterbar { flex-direction: column; align-items: stretch; }
  .ps-mp-search-input { width: 100%; }
  .ps-mp-listing { grid-template-columns: 64px 1fr; padding: 14px; }
  .ps-mp-listing-thumb { width: 64px; height: 64px; font-size: 28px; }
  .ps-mp-section { padding: 18px 18px; }
  .ps-mp-field-grid { grid-template-columns: 1fr; }
  .ps-mp-stepper { grid-template-columns: 1fr; gap: 6px; }
  .ps-mp-deal-type { grid-template-columns: 1fr; }
  .ps-mp-deal { grid-template-columns: 48px 1fr; }
  .ps-mp-deal-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
    margin-top: 4px;
  }
  .ps-mp-form-foot { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .ps-mp-form-foot-right { justify-content: space-between; }
}
