@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/dist/web/static/pretendard.css');

:root {
  --bg: #f5f8ff;
  --panel: #ffffff;
  --soft: #e7edff;
  --text: #111b34;
  --muted: #65708c;
  --primary: #2f4cff;
  --primary-600: #2033c5;
  --primary-100: #e7ecff;
  --accent: #11bbaa;
  --danger: #ef476f;
  --highlight: #ffc86f;
  --radius: 16px;
  --shadow: 0 20px 42px rgba(17, 27, 52, 0.08);
  --rfq-muted-opacity: 0.45;
  --architect-color: #2f4cff;
  --architect-color-deep: #1f2bb3;
  --architect-color-border: rgba(47, 76, 255, 0.35);
  --architect-color-border-strong: rgba(47, 76, 255, 0.52);
  --architect-color-soft: rgba(47, 76, 255, 0.12);
  --architect-color-soft-strong: rgba(47, 76, 255, 0.18);
  --contractor-color: #17bea9;
  --contractor-color-deep: #0f8576;
  --contractor-color-border: rgba(23, 190, 170, 0.35);
  --contractor-color-border-strong: rgba(23, 190, 170, 0.52);
  --contractor-color-soft: rgba(23, 190, 170, 0.12);
  --contractor-color-soft-strong: rgba(23, 190, 170, 0.18);
  --interior-color: #5a2fc9;
  --interior-color-deep: #3f21a3;
  --interior-color-border: rgba(162, 98, 255, 0.32);
  --interior-color-border-strong: rgba(162, 98, 255, 0.48);
  --interior-color-soft: rgba(162, 98, 255, 0.12);
  --interior-color-soft-strong: rgba(162, 98, 255, 0.18);
  --autobuild-purple: #8b5cf6;
  --autobuild-pink: #ec4899;
}

* { box-sizing: border-box; }
html, body { 
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}
body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.01em;
}

.is-hidden {
  display: none !important;
}

body[data-role="architect"] #dashboardActions,
body[data-role="contractor"] #dashboardActions {
  display: none !important;
}

a { color: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.topbar {
  background: linear-gradient(90deg, rgba(18,26,58,1) 0%, rgba(33,81,255,1) 100%);
  color: #fff;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}
.topbar-links { display: flex; gap: 16px; }
.topbar a { color: rgba(255,255,255,0.9); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(33,81,255,0.08);
  box-shadow: 0 18px 36px rgba(17, 27, 52, 0.06);
  overflow: visible; /* 자식 요소가 잘리지 않도록 */
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

/* 히어로 섹션 */
.hero-section {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh; /* 동적 뷰포트 높이 - 모바일 브라우저 주소창 고려 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
  padding-bottom: 80px; /* 버튼 아래 여유 공간 */
  margin-bottom: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.6) 100%),
    linear-gradient(135deg, rgba(47, 76, 255, 0.15) 0%, rgba(17, 187, 170, 0.12) 100%),
    url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80'),
    linear-gradient(130deg, #121a3a 0%, #1b2b80 48%, #2151ff 100%);
  background-size: cover, cover, cover, cover;
  background-position: center, center, center, center;
  animation: heroBackgroundPan 30s ease-in-out infinite;
}

@keyframes heroBackgroundPan {
  0%, 100% {
    background-position: center center, center center, center center, center center;
    transform: scale(1);
  }
  25% {
    background-position: 60% 40%, center center, 40% 60%, center center;
    transform: scale(1.05);
  }
  50% {
    background-position: center center, center center, center center, center center;
    transform: scale(1.1);
  }
  75% {
    background-position: 40% 60%, center center, 60% 40%, center center;
    transform: scale(1.05);
  }
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(47, 76, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(17, 187, 170, 0.12) 0%, transparent 60%);
  animation: heroBackgroundMove 25s ease-in-out infinite;
  z-index: 1;
}


.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(47, 76, 255, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(17, 187, 170, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 30% 40%, rgba(47, 76, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(17, 187, 170, 0.08) 0%, transparent 40%);
  animation: heroBackgroundMove 20s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes heroBackgroundMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, -20px) scale(1.1);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  margin-top: 180px;
  margin-bottom: 0;
}

.autobuild-bar {
  background: transparent;
  padding: 12px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
}

.autobuild-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 44px;
  width: 100%;
}

.autobuild-promo {
  display: flex;
  align-items: center;
}

.autobuild-promo-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.nav-link-autobuild {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 8px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: none;
  font-weight: 500;
  font-size: 14px;
  font-family: inherit;
}

.nav-link-autobuild:hover,
.nav-link-autobuild:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  box-shadow: none;
  text-decoration: none;
}

.autobuild-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: inherit;
  text-transform: uppercase;
  line-height: 1;
}

.autobuild-label {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  line-height: 1;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-image { display: block; height: 46px; width: auto; }
.nav { 
  display: flex; 
  gap: 20px;
  align-items: center; 
  flex-wrap: wrap;
}
.nav-auth { 
  display: flex; 
  align-items: center; 
  gap: 0;
  flex-wrap: wrap;
}
/* 환영 메시지가 있을 때만 간격 적용 */
.nav-auth .nav-greeting:not([hidden]) ~ * {
  margin-left: 12px;
}
.nav-greeting { 
  font-weight: 600; 
  color: var(--text); 
  font-size: 14px;
}
.nav-greeting[hidden] {
  display: none !important;
}
.nav-greeting strong { color: var(--primary-600); }
.nav-link {
  color: rgba(17,27,52,0.68);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(47,76,255,0.12);
  color: var(--primary-600);
}
.nav-link.nav-logout {
  border: 1px solid rgba(30,110,232,0.25);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
}
.nav-link.nav-logout:hover { background: rgba(30,110,232,0.12); color: var(--primary-600); border-color: rgba(30,110,232,0.4); }
button.nav-link { font-family: inherit; background: none; cursor: pointer; }
button.nav-link:focus-visible { outline: 2px solid var(--primary-300); outline-offset: 2px; }
.nav-link.login-link {
  color: var(--primary);
  font-weight: 600;
  border: 1px solid rgba(47,76,255,0.26);
  padding: 10px 18px;
}
.nav-link.login-link:hover { background: rgba(47,76,255,0.12); color: var(--primary-600); border-color: rgba(47,76,255,0.4); }

.nav-notifications {
  position: relative;
  flex-shrink: 0;
  margin-right: 0 !important; /* 우측 여백 완전히 제거 */
  margin-left: 0 !important; /* 좌측 여백 제거 */
}
.nav-notifications[hidden] {
  display: none !important;
}
.nav-notification-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 10px 8px; /* 우측 padding 줄임 */
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 0 !important; /* 우측 여백 제거 */
}
.nav-notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.nav-notification-badge[hidden] {
  display: none !important;
}
.nav-notifications.is-open .nav-notification-button {
  color: var(--primary-600);
}
.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(360px, 90vw);
  background: #fff;
  border: 1px solid rgba(17, 27, 52, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(17, 27, 52, 0.18);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1200;
}
.notification-panel[hidden] {
  display: none !important;
}
.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.notification-panel-title {
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}
.notification-panel-action {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-600);
  cursor: pointer;
  padding: 0;
}
.notification-panel-action:disabled {
  color: rgba(71, 84, 103, 0.6);
  cursor: default;
}
.notification-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.notification-item {
  border-radius: 10px;
  border: 1px solid rgba(208, 213, 221, 0.6);
  background: rgba(249, 250, 251, 0.85);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notification-item.is-unread {
  border-color: rgba(47, 76, 255, 0.35);
  background: rgba(47, 76, 255, 0.08);
}
.notification-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.notification-item-title {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.notification-item-time {
  font-size: 12px;
  color: rgba(71, 84, 103, 0.8);
}
.notification-item-body {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.notification-item-action {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-600);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.notification-item-action:hover,
.notification-item-action:focus-visible {
  text-decoration: underline;
}
.notification-item-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.notification-item-cta {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}
.notification-item-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary-600);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.notification-item-cta-button:hover,
.notification-item-cta-button:focus-visible {
  background: var(--primary-700);
  transform: translateY(-1px);
}
.notification-item-cta-button:active {
  transform: translateY(0);
}
.notification-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(71, 84, 103, 0.8);
  font-size: 14px;
}

.view { 
  display: none; 
  padding: 0 0 80px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}
.view.is-visible { display: block; }
#view-home { padding: 0; }

.profile-container { display: grid; gap: 28px; }
.profile-showcase-notice {
  background: linear-gradient(135deg, rgba(47, 76, 255, 0.08) 0%, rgba(23, 190, 170, 0.08) 100%);
  border: 1px solid rgba(47, 76, 255, 0.2);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(47, 76, 255, 0.08);
  margin-top: 32px;
}
.profile-showcase-notice-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.profile-showcase-notice-content {
  flex: 1;
  display: grid;
  gap: 8px;
}
.profile-showcase-notice-content strong {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}
.profile-showcase-notice-content p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.profile-showcase-notice-content a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}
.profile-showcase-notice-content a:hover {
  color: var(--primary-600);
}
.profile-card { background: var(--panel); border: 1px solid rgba(30,110,232,0.12); border-radius: 18px; padding: 24px 28px; box-shadow: 0 16px 32px rgba(15,35,80,0.06); display: grid; gap: 18px; }
.profile-card h3 { margin: 0; font-size: 20px; color: var(--text); }
.profile-card p { margin: 0; color: var(--muted); }
.profile-info { display: grid; gap: 8px; color: var(--text); }
.profile-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(47, 76, 255, 0.12);
}
.profile-info-primary {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--text);
}
.profile-info-primary strong {
  color: var(--primary-600);
  margin-right: 0;
  min-width: 138px;
}
.profile-info-primary span {
  flex: 1;
  min-width: 0;
}
.profile-info-header .btn-secondary { margin-left: auto; }
.profile-info strong { color: var(--primary-600); margin-right: 6px; }
.profile-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(47, 76, 255, 0.12);
  color: var(--text);
}
.profile-info p:last-of-type { border-bottom: none; }
.profile-info p strong {
  min-width: 138px;
  margin-right: 0;
}
.profile-info p a {
  color: var(--primary-500);
  text-decoration: underline;
  text-decoration-color: rgba(47, 76, 255, 0.4);
}
.profile-edit-form { display: grid; gap: 20px; }
.profile-edit-grid { display: grid; gap: 10px; }
.profile-logo-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(30, 110, 232, 0.1);
}
.profile-logo-label {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-logo-label > span {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.profile-logo-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-logo-preview {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 2px solid rgba(30, 110, 232, 0.15);
  background: rgba(248, 250, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.profile-logo-placeholder {
  color: rgba(90, 120, 216, 0.4);
  font-size: 13px;
  font-weight: 500;
}
.profile-logo-upload-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-logo-upload-controls .btn {
  font-size: 13px;
  padding: 8px 16px;
}
.profile-info .profile-logo-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(30, 110, 232, 0.1);
}
.profile-info .profile-logo-section strong {
  display: block;
  margin-bottom: 12px;
  color: var(--primary-600);
  font-size: 14px;
}
.profile-edit-field { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(47, 76, 255, 0.12); color: var(--text); }
.profile-edit-field:has(textarea) { align-items: flex-start; }
.profile-edit-field:has(textarea) span { padding-top: 8px; }
.profile-edit-field:last-of-type { border-bottom: none; }
.profile-edit-field span { font-size: 14px; font-weight: 600; color: var(--primary-600); min-width: 138px; }
.profile-edit-field input,
.profile-edit-field select,
.profile-edit-field textarea {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47, 76, 255, 0.18);
  background: rgba(47, 76, 255, 0.08);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: inherit;
  font-size: 14px;
}
.profile-edit-field input:focus,
.profile-edit-field select:focus,
.profile-edit-field textarea:focus {
  outline: none;
  border-color: rgba(94, 132, 240, 0.5);
  box-shadow: 0 0 0 3px rgba(94, 132, 240, 0.16);
}
.profile-edit-field select { appearance: none; background-image: none; }
.profile-edit-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.profile-static-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(47, 76, 255, 0.12); color: var(--muted); }
.profile-static-row:last-of-type { border-bottom: none; }
.profile-static-row strong { color: var(--primary-600); min-width: 138px; margin-right: 0; }
.profile-static-row span { flex: 1; min-width: 0; color: var(--text); }
.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(47, 76, 255, 0.28);
}
.profile-card-header h3 { margin: 0; font-size: 20px; color: var(--text); }
.profile-card-header .profile-edit-actions { display: flex; gap: 12px; }

/* 프로필 카드 헤더 버튼 스타일 */
.profile-card-header .btn-edit-profile,
.profile-card-header .btn-add-portfolio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.profile-card-header .btn-edit-profile {
  background: linear-gradient(135deg, rgba(47, 76, 255, 0.1), rgba(47, 76, 255, 0.15));
  color: var(--primary);
  border: 1.5px solid rgba(47, 76, 255, 0.25);
}

.profile-card-header .btn-edit-profile:hover {
  background: linear-gradient(135deg, rgba(47, 76, 255, 0.15), rgba(47, 76, 255, 0.2));
  border-color: rgba(47, 76, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 76, 255, 0.2);
}

.profile-card-header .btn-edit-profile:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(47, 76, 255, 0.15);
}

.profile-card-header .btn-add-portfolio {
  background: linear-gradient(135deg, #2D73B9, #4D8CE2);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(45, 115, 185, 0.2);
}

.profile-card-header .btn-add-portfolio:hover {
  background: linear-gradient(135deg, #2563a8, #3d7dd1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 115, 185, 0.3);
}

.profile-card-header .btn-add-portfolio:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45, 115, 185, 0.2);
}

.profile-card-header .btn-edit-profile svg,
.profile-card-header .btn-add-portfolio svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.profile-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.profile-list li { background: rgba(30,110,232,0.05); border-radius: 12px; padding: 12px 16px; color: var(--text); display: grid; gap: 4px; transition: background 0.15s ease, transform 0.15s ease; }
.profile-list li[data-profile-target] { cursor: pointer; }
.profile-list li[data-profile-target]:hover { background: rgba(45,115,185,0.14); transform: translateY(-1px); }
.profile-list li span { color: var(--muted); font-size: 13px; }
.profile-empty { background: var(--panel); border: 1px dashed rgba(30,110,232,0.3); border-radius: 18px; padding: 32px; text-align: center; color: var(--muted); }
.profile-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.profile-actions.align-start { justify-content: flex-start; }
.profile-actions .btn.btn-danger { border: none; background: #d93025; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.profile-actions .btn.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(217,48,37,0.25); }

input.is-readonly {
  background: rgba(15, 35, 80, 0.05);
  pointer-events: none;
  color: var(--muted);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: #f6f8ff;
  z-index: 2;
}
.hero-subtitle {
  margin: 0;
  font-weight: 600;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  word-break: keep-all;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-title-part1 {
  display: block;
  color: #fff;
  font-weight: 700;
}

.hero-title-part2 {
  display: block;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  margin: 0;
  max-width: 700px;
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  word-break: keep-all;
  font-weight: 500;
}
.page-status-banner {
  position: relative;
  z-index: 6;
  background: linear-gradient(120deg, rgba(33, 81, 255, 0.28) 0%, rgba(17, 187, 170, 0.18) 45%, rgba(96, 213, 255, 0.24) 100%);
  background-size: 320% 320%;
  border-bottom: 1px solid rgba(21, 43, 106, 0.16);
  color: #0d193c;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(-10px);
  animation: statusBannerDrop 0.6s ease-out 0.15s forwards,
    statusBannerFlow 8.5s ease-in-out 0.9s infinite;
  will-change: opacity, transform, background-position;
}
.page-status-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 15px;
  line-height: 1.6;
}
.page-status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 43, 106, 0.14);
  color: #152b6a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.page-status-text {
  color: rgba(13, 25, 60, 0.84);
  animation: statusTextGlow 6s ease-in-out infinite;
  text-shadow: 0 0 0 rgba(33, 81, 255, 0);
  will-change: color, text-shadow;
}

@keyframes statusTextGlow {
  0%, 100% {
    color: rgba(13, 25, 60, 0.84);
    text-shadow: 0 0 0 rgba(33, 81, 255, 0);
  }
  50% {
    color: rgba(21, 43, 106, 0.96);
    text-shadow: 0 0 14px rgba(33, 81, 255, 0.35);
  }
}

@keyframes statusBannerDrop {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  60% {
    opacity: 1;
    transform: translateY(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes statusBannerFlow {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 45% 30%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 55% 70%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-status-text {
    animation: none;
    text-shadow: none;
  }
  .page-status-banner {
    opacity: 1;
    transform: none;
    animation: none;
    background-position: 50% 50%;
    background-size: 100% 100%;
  }
}
.hero-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
  margin-top: 10px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.hero-btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.95);
}

.hero-btn svg {
  flex-shrink: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}

@keyframes pulseOrbit {
  0% { transform: rotate(0deg) scale(0.9); opacity: 0.38; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 0.55; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.38; }
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(47,76,255,0.12);
  color: var(--primary-600);
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(30,110,232,0.15); }
.btn.primary {
  background: linear-gradient(120deg, var(--primary) 0%, #6b7bff 100%);
  border-color: transparent;
  color: #fff;
}
.btn.primary:hover {
  background: linear-gradient(120deg, var(--primary-600) 0%, #5462f2 100%);
}
.btn.intent-contractor {
  background: #0f9d8d;
  border-color: #0f9d8d;
  color: #fff;
}
.btn.intent-contractor:hover {
  background: #0d8579;
  border-color: #0d8579;
  box-shadow: 0 10px 18px rgba(15, 157, 141, 0.25);
}
.btn.intent-interior {
  background: #6c3fd9;
  border-color: #6c3fd9;
  color: #fff;
}
.btn.intent-interior:hover {
  background: #5a2fc9;
  border-color: #5a2fc9;
  box-shadow: 0 10px 18px rgba(108, 63, 217, 0.25);
}
.btn.btn-danger {
  background: #d93025;
  border-color: #d93025;
  color: #fff;
}
.btn.btn-danger:hover {
  background: #c0241b;
  border-color: #c0241b;
  box-shadow: 0 10px 18px rgba(217,48,37,0.25);
}
.btn.btn-danger:disabled,
.btn.btn-danger[disabled] {
  background: rgba(217,48,37,0.55);
  border-color: rgba(217,48,37,0.45);
}
.btn.btn-small {
  padding: 8px 14px;
  font-size: 13px;
}
.btn.outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,0.2); }
.btn.outline-light {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
  color: #475569;
}
.btn.outline-light:hover {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(100, 116, 139, 0.75);
  color: #334155;
}
.btn.chat-request {
  background: transparent;
  border: 1px solid rgba(30,110,232,0.32);
  color: var(--primary-600);
}
.btn.chat-request:hover {
  background: rgba(30,110,232,0.08);
  box-shadow: 0 10px 18px rgba(30,110,232,0.12);
}
.btn:disabled,
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }

.role-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 60px 0 56px;
}
.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(30,110,232,0.12);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(23, 49, 102, 0.12); }
.card h3 { margin: 0; font-size: 20px; color: var(--text); }
.card p { margin: 0; color: var(--muted); line-height: 1.6; }

.role-card {
  position: relative;
  border-radius: 18px;
  padding: 32px 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  border: 1px solid rgba(17, 27, 52, 0.12);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 
    0 4px 12px rgba(17, 27, 52, 0.08),
    0 2px 4px rgba(17, 27, 52, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              border-color 0.3s ease;
  will-change: transform, box-shadow;
}
.role-card.owner,
.role-card.architect,
.role-card.contractor,
.role-card.interior,
.role-card.material-supplier {
  border-color: rgba(17, 27, 52, 0.12);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}
.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 16px 40px rgba(17, 27, 52, 0.15),
    0 8px 16px rgba(17, 27, 52, 0.1),
    0 2px 4px rgba(17, 27, 52, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(17, 27, 52, 0.18);
}
.role-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.role-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.role-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  padding: 12px 24px;
  min-width: 180px;
  min-height: 44px;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid rgba(17, 27, 52, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: #111b34;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 2px 6px rgba(17, 27, 52, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  align-self: end;
  justify-self: center;
}
.role-card.owner .btn,
.role-card.owner .btn,
.role-card.architect .btn,
.role-card.contractor .btn,
.role-card.interior .btn,
.role-card.material-supplier .btn {
  border: 1px solid rgba(17, 27, 52, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
  color: #111b34;
}
.role-card .btn:hover {
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
  color: #111b34;
  box-shadow: 
    0 4px 12px rgba(17, 27, 52, 0.12),
    0 2px 4px rgba(17, 27, 52, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  border-color: rgba(17, 27, 52, 0.15);
}

.landing-overview {
  display: grid;
  gap: 28px;
  margin: 48px 0 12px;
  position: relative;
  z-index: 1;
}
.overview-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.overview-badge {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(47,76,255,0.18);
  border-radius: 18px;
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  box-shadow: 0 14px 28px rgba(17,27,52,0.08);
}
.overview-badge strong {
  font-size: 15px;
  color: var(--text);
}
.overview-badge span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.collab-pipeline {
  background: linear-gradient(135deg, rgba(47,76,255,0.08), rgba(17,187,170,0.08));
  border-radius: 28px;
  border: 1px solid rgba(17,27,52,0.08);
  padding: 32px 34px;
  display: grid;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.collab-pipeline::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(47,76,255,0.12) 0, transparent 60%), radial-gradient(circle at 80% 80%, rgba(17,187,170,0.12) 0, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}
.pipeline-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.pipeline-header h2 {
  margin: 0;
  font-size: 26px;
  color: var(--text);
}
.pipeline-header p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}
.pipeline-step {
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 20px 18px;
  border: 1px solid rgba(47,76,255,0.15);
  box-shadow: 0 16px 32px rgba(17,27,52,0.08);
  display: grid;
  gap: 10px;
}
.pipeline-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, #6374ff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.pipeline-step h3 {
  margin: 0;
  font-size: 17px;
}
.pipeline-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.role-grid .card:first-child .btn {
  font-size: 14px;
}

.dashboard-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 18px;
  overflow: visible;
  position: relative;
}
.dashboard-tabs-bar .tabs {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  scroll-padding: 0 8px;
}
.dashboard-tabs-bar .tabs::-webkit-scrollbar {
  display: none;
}
.dashboard-tabs-bar .tabs .tab {
  overflow: visible;
  text-overflow: clip;
  position: relative;
}
.tab-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.tab-actions .btn {
  min-width: 0;
}
.btn-new-project {
  padding: 12px 28px;
  background: linear-gradient(120deg, var(--primary) 0%, #6b7bff 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(47, 76, 255, 0.22);
  font-size: 15px;
  position: relative;
}
.btn-new-project::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}
.btn-new-project:hover {
  background: linear-gradient(120deg, var(--primary-600) 0%, #5462f2 100%);
  box-shadow: 0 20px 32px rgba(47, 76, 255, 0.28);
}
.btn-new-project:focus-visible {
  outline: 3px solid rgba(47, 76, 255, 0.3);
  outline-offset: 2px;
}
.btn-new-project:disabled {
  background: rgba(47, 76, 255, 0.35);
  box-shadow: none;
}

.notice {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(30,110,232,0.12);
  color: var(--muted);
  line-height: 1.6;
  box-shadow: var(--shadow);
}
.notice strong { color: var(--text); }

.tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  background: rgba(12, 22, 52, 0.08);
  border: 1px solid rgba(47,76,255,0.14);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  margin: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-padding: 0 8px;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  height: calc(100% - 16px);
  width: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--primary) 0%, #5867ff 45%, #19b4a6 100%);
  box-shadow: 0 14px 32px rgba(24, 58, 140, 0.28);
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
.tab {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.55);
  color: rgba(17,27,52,0.6);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 600;
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex-shrink: 0;
  isolation: isolate;
}
.tab.is-active {
  color: #fff !important;
  background: transparent;
  z-index: 10;
  position: relative;
}
.tab.is-active * {
  position: relative;
  z-index: 1;
  color: #fff !important;
}
.tab:not(.is-active):hover {
  color: var(--text);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(17,27,52,0.12);
}
.tab:focus-visible {
  outline: 2px solid rgba(47,76,255,0.35);
  outline-offset: 2px;
}
.tab-content {
  display: none;
  padding: 24px 24px 28px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(47,76,255,0.12);
  border-radius: 24px;
  box-shadow: 0 24px 42px rgba(10,28,68,0.08);
}
.tab-content.is-visible {
  display: block;
  animation: tabSlideIn 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes tabSlideIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-toolbar { display: flex; justify-content: space-between; padding: 0 0 24px; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.tab-toolbar .toolbar-left { display: flex; flex-direction: column; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.tab-toolbar .toolbar-right { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.tab-toolbar .toolbar-left.spacer { flex: 1; }
.filter-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.filter-toggle input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary-500); }
.date-filter-group { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.date-filter { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.date-filter input[type="date"] {
  appearance: none;
  background: rgba(244,246,251,0.75);
  border: 1px solid rgba(30,110,232,0.18);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 160px;
  height: 40px;
  line-height: 1.5;
  color: var(--text);
  box-sizing: border-box;
}
.date-filter input[type="date"]:focus {
  outline: none;
  border-color: rgba(47,76,255,0.45);
  box-shadow: 0 0 0 3px rgba(47,76,255,0.18);
}
.btn.btn-ghost {
  background: transparent;
  border: 1px solid rgba(47,76,255,0.18);
  color: var(--primary-600);
  padding: 10px 16px;
}
.btn.btn-ghost:hover {
  background: rgba(47,76,255,0.08);
  border-color: rgba(47,76,255,0.32);
}

#view-about { padding: 48px 0 80px; }
.about-tabset {
  display: grid;
  gap: 32px;
  color: rgba(20, 36, 72, 0.96);
}
.about-tablist {
  position: relative;
  display: inline-flex;
  flex-wrap: nowrap; /* 줄바꿈 방지 */
  gap: 12px;
  background: rgba(19, 36, 89, 0.06);
  border: 1px solid rgba(27, 54, 120, 0.12);
  border-radius: 18px;
  padding: 10px;
  overflow-x: auto; /* 가로 스크롤 허용 */
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox에서 스크롤바 숨김 */
  -ms-overflow-style: none; /* IE/Edge에서 스크롤바 숨김 */
  -webkit-overflow-scrolling: touch; /* iOS에서 부드러운 스크롤 */
  scroll-behavior: smooth; /* 부드러운 스크롤 애니메이션 */
  max-width: 100%; /* 부모 너비를 초과하지 않음 */
}
.about-tablist::-webkit-scrollbar {
  display: none; /* Chrome/Safari에서 스크롤바 숨김 */
}
.about-tab {
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 14px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(26, 42, 92, 0.75);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0; /* 탭이 축소되지 않도록 */
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
  transition: all 0.2s ease;
}
.about-tab:hover:not(.is-active),
.about-tab:focus-visible:not(.is-active) {
  color: rgba(20, 36, 72, 0.96);
  background: rgba(47, 76, 255, 0.12);
  outline: none;
}
.about-tab.is-active {
  color: #f6f9ff;
  background: transparent;
  box-shadow: none;
}
.about-tab:focus-visible {
  outline: 3px solid rgba(74, 112, 228, 0.35);
  outline-offset: 3px;
}
.about-tab-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  height: calc(100% - 20px);
  width: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(59, 108, 246, 0.95), rgba(47, 206, 190, 0.85));
  box-shadow: 0 12px 24px rgba(26, 60, 144, 0.22);
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, width;
  opacity: 0;
  pointer-events: none;
}
.about-intro-lead {
  display: grid;
  justify-items: start;
  color: rgba(20, 36, 72, 0.96);
}
.about-tabpanes {
  display: grid;
}
.about-pane {
  display: none;
}
.about-pane.is-visible {
  display: block;
  animation: tabSlideIn 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.about-pane[hidden] {
  display: none !important;
}
.about-container {
  display: grid;
  gap: 48px;
  color: rgba(20, 36, 72, 0.96);
}
.about-hero {
  display: grid;
  gap: 16px;
  max-width: 760px;
  color: rgba(20, 36, 72, 0.96);
}
.about-kicker {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(76, 118, 212, 0.85);
  font-weight: 700;
}
.about-hero h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: rgba(16, 30, 74, 0.98);
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-break: keep-all;
  text-shadow: none;
  margin: 0;
}
.about-hero p {
  color: rgba(34, 48, 92, 0.78);
  margin: 0;
  font-size: 15px;
}
.about-diagram {
  background: linear-gradient(150deg, rgba(16, 32, 72, 0.92), rgba(22, 50, 110, 0.88));
  border: 1px solid rgba(92, 126, 228, 0.35);
  border-radius: 26px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(8, 18, 48, 0.28);
}
.about-diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(118, 160, 255, 0.45) 0%, transparent 58%),
              radial-gradient(circle at 82% 70%, rgba(48, 206, 190, 0.35) 0%, transparent 60%);
  opacity: 0.85;
}
.diagram-step {
  background: rgba(8, 16, 40, 0.45);
  border: 1px solid rgba(102, 136, 238, 0.3);
  border-radius: 20px;
  padding: 24px 22px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 36px rgba(8, 18, 48, 0.22);
  color: rgba(224, 232, 255, 0.9);
}
.diagram-step h3 {
  font-size: 18px;
  color: rgba(246, 248, 255, 0.92);
}
.diagram-step p {
  font-size: 14px;
  color: rgba(198, 210, 238, 0.78);
}
.diagram-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(40, 72, 178, 0.3);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.about-card {
  background: linear-gradient(180deg, rgba(12, 26, 58, 0.82), rgba(10, 20, 46, 0.9));
  border: 1px solid rgba(78, 110, 214, 0.3);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(8, 20, 52, 0.24);
  color: rgba(228, 234, 255, 0.9);
}
.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(80, 120, 230, 0.28);
  color: #f6f9ff;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.about-card h3 {
  font-size: 17px;
  color: rgba(232, 238, 255, 0.94);
}
.about-card p {
  font-size: 14px;
  color: rgba(188, 204, 236, 0.75);
}
.about-cta {
  background: linear-gradient(150deg, rgba(14, 32, 72, 0.92), rgba(22, 46, 94, 0.9));
  border: 1px solid rgba(90, 126, 228, 0.32);
  border-radius: 26px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(228, 236, 255, 0.94);
  box-shadow: 0 28px 52px rgba(8, 18, 48, 0.28);
}
.about-cta h3 {
  font-size: 20px;
  color: rgba(240, 244, 255, 0.96);
}
.about-cta .btn {
  min-width: 180px;
  border: 1px solid rgba(118, 156, 255, 0.32);
  background: linear-gradient(110deg, rgba(70, 120, 255, 0.88), rgba(52, 190, 210, 0.88));
  color: #f6f9ff;
  box-shadow: 0 16px 30px rgba(8, 24, 60, 0.3);
}
.about-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(8, 24, 60, 0.36);
  border-color: rgba(140, 182, 255, 0.45);
}
.about-ci {
  display: grid;
  gap: 28px;
  color: rgba(20, 36, 72, 0.96);
}
.about-ci .ci-section {
  display: grid;
  gap: 18px;
}
.about-ci .ci-section + .ci-section {
  margin-top: 6px;
}
.about-ci-header h3 {
  font-size: 28px;
  margin: 0 0 12px;
  color: rgba(16, 30, 74, 0.98);
}
.about-ci-header p {
  margin: 0;
  font-size: 15px;
  color: rgba(34, 48, 92, 0.78);
  line-height: 1.6;
}
.about-ci-assets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.ci-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.ci-card {
  background: rgba(246, 248, 255, 0.82);
  border: 1px solid rgba(82, 114, 204, 0.18);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 14px;
  box-shadow: 0 16px 30px rgba(12, 24, 64, 0.12);
  color: rgba(28, 44, 96, 0.88);
}
.ci-card--media {
  align-content: center;
  text-align: center;
}
.ci-card--media img {
  max-width: 220px;
  margin: 0 auto;
}
.ci-card h5 {
  margin: 0;
  font-size: 16px;
  color: rgba(18, 36, 92, 0.9);
}
.ci-card--message p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(18, 36, 92, 0.92);
  text-align: center;
  line-height: 1.6;
}
.ci-vision-line {
  display: block;
}
.ci-vision-line + .ci-vision-line {
  margin-top: 6px;
}
.ci-card img {
  width: 100%;
  height: auto;
}
.ci-card figcaption {
  font-size: 13px;
  color: rgba(34, 52, 112, 0.68);
}
.ci-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.ci-card li {
  font-size: 14px;
  line-height: 1.5;
}
.ci-card h4 {
  margin: 0;
  font-size: 17px;
  color: rgba(18, 36, 92, 0.9);
}
.ci-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(34, 48, 92, 0.7);
}
.ci-typography {
  display: grid;
  gap: 12px;
}
.ci-typography-item {
  background: rgba(244, 247, 255, 0.72);
  border: 1px dashed rgba(82, 114, 204, 0.3);
  border-radius: 16px;
  padding: 14px 18px;
  display: grid;
  gap: 6px;
}
.ci-typography-item strong {
  font-size: 14px;
  color: rgba(18, 36, 92, 0.92);
}
.ci-typography-item span {
  font-size: 13px;
  color: rgba(36, 52, 110, 0.75);
}
.ci-swatch {
  display: grid;
  gap: 6px;
  align-content: start;
}
.ci-swatch-chip {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid rgba(18, 36, 92, 0.18);
  background: var(--ci-color, #132459);
  box-shadow: 0 10px 18px rgba(8, 18, 48, 0.18);
}
.ci-swatch-meta {
  font-size: 13px;
  color: rgba(28, 44, 96, 0.8);
}
.ci-swatch-meta strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.ci-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.about-features {
  display: grid;
  gap: 32px;
  color: rgba(18, 34, 78, 0.96);
}
.about-features-header {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0;
}
.about-features-header h3 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  color: rgba(16, 30, 74, 0.98);
  line-height: 1.3;
}
.about-features-header p {
  margin: 0;
  font-size: 15px;
  color: rgba(34, 48, 92, 0.76);
  line-height: 1.6;
}
.about-features-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.about-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 76, 255, 0.12), rgba(23, 190, 170, 0.12));
  border: 1px solid rgba(47, 76, 255, 0.16);
  color: rgba(23, 44, 98, 0.78);
  font-size: 13px;
  font-weight: 600;
}
.about-features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.about-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 26px 28px;
  border-radius: 24px;
  border: 1px solid rgba(86, 120, 210, 0.22);
  background: linear-gradient(145deg, rgba(246, 249, 255, 0.96), rgba(231, 240, 255, 0.9));
  box-shadow: 0 20px 36px rgba(18, 38, 92, 0.08);
}
.about-feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 76, 255, 0.9), rgba(23, 190, 170, 0.9));
  display: grid;
  place-items: center;
  color: #f5f8ff;
  font-size: 26px;
  box-shadow: 0 12px 22px rgba(32, 64, 150, 0.25);
}
.about-feature-body {
  display: grid;
  gap: 10px;
}
.about-feature-body h4 {
  margin: 0;
  font-size: 18px;
  color: rgba(18, 36, 92, 0.92);
}
.about-feature-body p {
  margin: 0;
  font-size: 14px;
  color: rgba(34, 52, 112, 0.74);
  line-height: 1.6;
}
.about-feature-points {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}
.about-feature-points li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: rgba(40, 60, 120, 0.75);
}
.about-feature-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(47, 76, 255, 0.8), rgba(23, 190, 170, 0.8));
  box-shadow: 0 0 0 3px rgba(47, 76, 255, 0.12);
}
.about-features-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 48px;
  border-top: 1px solid rgba(88, 120, 210, 0.18);
  text-align: center;
}
.about-features-cta h4 {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 20px;
  color: rgba(18, 32, 84, 0.94);
}
.about-features-cta .btn {
  min-width: 180px;
  text-align: center;
}
.about-pricing {
  display: grid;
  gap: 32px;
  color: rgba(18, 34, 78, 0.96);
}
.about-pricing-header {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0;
}
.about-pricing-header h3 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  color: rgba(16, 30, 74, 0.98);
  line-height: 1.3;
}
.about-pricing-header p {
  margin: 0;
  font-size: 15px;
  color: rgba(34, 48, 92, 0.76);
  line-height: 1.6;
}
.about-pricing-content {
  display: grid;
  gap: 40px;
}
.pricing-section {
  display: grid;
  gap: 24px;
}
.pricing-section h4 {
  margin: 0;
  font-size: 22px;
  color: rgba(16, 30, 74, 0.98);
  font-weight: 700;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pricing-card {
  background: linear-gradient(145deg, rgba(246, 249, 255, 0.96), rgba(231, 240, 255, 0.9));
  border: 1px solid rgba(86, 120, 210, 0.22);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 36px rgba(18, 38, 92, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(18, 38, 92, 0.12);
}
.pricing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(86, 120, 210, 0.15);
  gap: 16px;
}
.pricing-card-header > div:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pricing-card-header h5 {
  margin: 0;
  font-size: 20px;
  color: rgba(18, 36, 92, 0.92);
  font-weight: 700;
}
.pricing-card-header p {
  margin: 0;
  font-size: 13px;
  color: rgba(34, 52, 112, 0.65);
}
.pricing-price {
  font-size: 18px;
  font-weight: 700;
  color: rgba(47, 76, 255, 0.9);
  background: linear-gradient(135deg, rgba(47, 76, 255, 0.12), rgba(23, 190, 170, 0.12));
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 76, 255, 0.2);
  white-space: nowrap;
}
.pricing-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.pricing-card-body p {
  margin: 0;
  font-size: 14px;
  color: rgba(34, 52, 112, 0.74);
  line-height: 1.6;
}
.pricing-card-body .btn {
  width: 100%;
  margin-top: auto;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 48px;
  line-height: 1.4;
  border-radius: 12px;
  text-align: center;
  flex-shrink: 0;
}
.pricing-card-body .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.pricing-features {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}
.pricing-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: rgba(40, 60, 120, 0.75);
  line-height: 1.5;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(47, 76, 255, 0.9);
  font-weight: 700;
  font-size: 16px;
}
.pricing-note {
  background: rgba(244, 247, 255, 0.72);
  border: 1px solid rgba(86, 120, 210, 0.22);
  border-radius: 20px;
  padding: 20px 24px;
  display: grid;
  gap: 12px;
}
.pricing-note p {
  margin: 0;
  font-size: 14px;
  color: rgba(34, 52, 112, 0.74);
  line-height: 1.6;
}
.pricing-note strong {
  color: rgba(18, 36, 92, 0.92);
  font-weight: 600;
}
.pricing-contact {
  background: rgba(244, 247, 255, 0.72);
  border: 1px solid rgba(86, 120, 210, 0.22);
  border-radius: 20px;
  padding: 20px 24px;
  display: grid;
  gap: 12px;
}
.pricing-contact p {
  margin: 0;
  font-size: 14px;
  color: rgba(34, 52, 112, 0.74);
  line-height: 1.6;
}
.pricing-contact a {
  color: rgba(47, 76, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
}
.pricing-contact a:hover {
  text-decoration: underline;
}

/* 문의 폼 스타일 */
.contact-form {
  margin-top: 20px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(86, 120, 210, 0.22);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 76, 255, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.contact-form .btn-primary:hover:not(:disabled) {
  background: var(--primary-600);
  transform: translateY(-1px);
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.contact-form-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-form-note a:hover {
  text-decoration: underline;
}

.contact-form-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 12px;
}

.contact-form-message.success {
  background: rgba(17, 187, 170, 0.1);
  border: 1px solid rgba(17, 187, 170, 0.3);
  color: #0f8576;
}

.contact-form-message.error {
  background: rgba(239, 71, 111, 0.1);
  border: 1px solid rgba(239, 71, 111, 0.3);
  color: #c7365a;
}

.contact-form-message.info {
  background: rgba(47, 76, 255, 0.1);
  border: 1px solid rgba(47, 76, 255, 0.3);
  color: var(--primary-600);
}
@media (max-width: 719px) {
  .about-feature-card {
    grid-template-columns: 1fr;
    padding: 22px;
    text-align: left;
  }
  .about-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 24px;
  }
}
@media (max-width: 599px) {
  .about-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-feature-pill {
    font-size: 12px;
  }
  .about-features-cta {
    justify-content: flex-start;
    text-align: left;
  }
  .about-features-cta .btn {
    min-width: unset;
  }
}
.about-guide {
  display: grid;
  gap: 28px;
  color: rgba(20, 36, 72, 0.96);
}
.about-guide-header h3 {
  margin: 0 0 12px;
  font-size: 28px;
  color: rgba(16, 30, 74, 0.98);
}
.about-guide-header p {
  margin: 0;
  font-size: 15px;
  color: rgba(34, 48, 92, 0.78);
  line-height: 1.6;
  margin-bottom: 24px;
}
.about-guide-layout {
  display: grid;
  gap: 24px;
}
.about-guide-lane-headings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}
.about-guide-lane-title {
  margin: 0;
  font-size: 20px;
  color: rgba(16, 30, 74, 0.98);
}
.about-guide-rows {
  display: grid;
  gap: 18px;
}
.about-guide-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.about-guide-row .about-guide-step {
  background: rgba(246, 248, 255, 0.92);
  height: 100%;
}
.about-guide-row .about-guide-step-body {
  display: grid;
  gap: 8px;
}
.about-guide-steps {
  display: grid;
  gap: 16px;
}
.about-guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(246, 248, 255, 0.85);
  border: 1px solid rgba(82, 114, 204, 0.18);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 28px rgba(12, 24, 64, 0.1);
}
.about-guide-step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(59, 108, 246, 0.95), rgba(47, 206, 190, 0.85));
  display: grid;
  place-items: center;
  color: #f6f9ff;
  font-weight: 700;
  font-size: 15px;
}
.about-guide-step-body h4 {
  margin: 0 0 8px;
  font-size: 17px;
  color: rgba(18, 36, 92, 0.9);
}
.about-guide-step-body p {
  margin: 0;
  font-size: 14px;
  color: rgba(34, 52, 112, 0.75);
  line-height: 1.6;
}
.about-guide-row .about-guide-step-body h4 {
  margin-bottom: 4px;
}
.about-guide-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 48px 0;
  background: rgba(246, 248, 255, 0.5);
  border-top: 1px solid rgba(88, 120, 210, 0.18);
  border-bottom: 1px solid rgba(88, 120, 210, 0.18);
}
.about-guide-cta .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.about-guide-cta h4 {
  margin: 0 0 16px;
  width: 100%;
  text-align: center;
  font-size: 20px;
  color: rgba(18, 32, 84, 0.94);
}
.about-guide-cta .btn {
  min-width: 180px;
  text-align: center;
}
@media (max-width: 600px) {
  .about-guide-cta .container {
    flex-direction: column;
  }
}
.modal-signup {
  width: min(640px, 94vw);
}
.signup-choice-form {
  display: grid;
  gap: 28px;
  padding: 32px;
  background: var(--panel);
  color: var(--text);
}
.signup-choice-header {
  display: grid;
  gap: 8px;
  text-align: center;
}
.signup-choice-header h3 {
  margin: 0;
  font-size: 26px;
  color: rgba(16, 30, 74, 0.98);
}
.signup-choice-header p {
  margin: 0;
  font-size: 14px;
  color: rgba(38, 52, 98, 0.72);
  line-height: 1.6;
}
.signup-choice-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.signup-choice-card {
  border: 1px solid rgba(88, 120, 210, 0.2);
  border-radius: 18px;
  padding: 20px 22px;
  background: rgba(246, 249, 255, 0.92);
  display: grid;
  gap: 10px;
  align-content: start;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.signup-choice-card strong {
  font-size: 16px;
  color: rgba(16, 32, 78, 0.98);
}
.signup-choice-card span {
  font-size: 13px;
  color: rgba(36, 54, 108, 0.75);
  line-height: 1.55;
}
.signup-choice-card:hover,
.signup-choice-card:focus-visible {
  border-color: rgba(78, 110, 220, 0.6);
  box-shadow: 0 18px 30px rgba(32, 64, 140, 0.15);
  transform: translateY(-2px);
  outline: none;
}
.modal-signup .modal-actions {
  padding-top: 0;
}
.modal-signup .modal-actions .btn {
  min-width: 120px;
}
@media (max-width: 959px) {
  .about-guide-layout {
    display: flex;
    flex-direction: column;
  }
  .about-guide-lane-headings {
    display: contents; /* 헤더를 투명하게 만들어 각 헤더가 직접 layout의 자식처럼 작동 */
  }
  .about-guide-rows {
    display: contents; /* rows를 투명하게 만들어 step들이 직접 layout의 자식처럼 작동 */
  }
  .about-guide-row {
    display: contents; /* row를 투명하게 만들어 step들이 직접 layout의 자식처럼 작동 */
  }
  /* 모바일에서 헤더 순서 조정 */
  .about-guide-lane-title:first-child {
    order: 1; /* "건축주" 헤더 */
    margin-bottom: 12px;
  }
  .about-guide-lane-title:last-child {
    order: 6; /* "설계사 · 시공사 · 스튜디오" 헤더 */
    margin-top: 24px;
    margin-bottom: 12px;
  }
  /* 모바일에서 step들 사이의 간격 조정 */
  .about-guide-layout .about-guide-step {
    margin-bottom: 18px;
  }
  /* 마지막 step (order: 10)의 margin 제거 */
  .about-guide-row:nth-child(4) .about-guide-step:last-child {
    margin-bottom: 0;
  }
  /* 모바일에서 건축주 단계가 먼저, 설계사 단계가 나중에 오도록 순서 조정 */
  .about-guide-row:nth-child(1) .about-guide-step:first-child { order: 2; }
  .about-guide-row:nth-child(1) .about-guide-step:last-child { order: 7; }
  .about-guide-row:nth-child(2) .about-guide-step:first-child { order: 3; }
  .about-guide-row:nth-child(2) .about-guide-step:last-child { order: 8; }
  .about-guide-row:nth-child(3) .about-guide-step:first-child { order: 4; }
  .about-guide-row:nth-child(3) .about-guide-step:last-child { order: 9; }
  .about-guide-row:nth-child(4) .about-guide-step:first-child { order: 5; }
  .about-guide-row:nth-child(4) .about-guide-step:last-child { order: 10; }
}

#view-showcase { 
  padding: 48px 0 80px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}
#view-showcase.is-visible .member-grid,
#view-showcase.is-visible .member-empty {
  animation: tabSlideIn 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.showcase-container { 
  display: grid; 
  gap: 40px; 
  color: rgba(20, 36, 72, 0.96);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}
.showcase-header { display: grid; gap: 12px; }
.showcase-eyebrow { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: rgba(76, 118, 212, 0.9); font-weight: 700; }
.showcase-title-row { display: grid; gap: 10px; max-width: 640px; }
.showcase-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  color: rgba(16, 30, 74, 0.98);
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-break: keep-all;
  white-space: normal; /* 줄바꿈 허용 */
  max-width: 100%;
  overflow-wrap: break-word; /* 긴 단어도 줄바꿈 */
}
.showcase-title-row p { margin: 0; font-size: 15px; color: rgba(34, 48, 92, 0.78); line-height: 1.6; }
.showcase-content { display: grid; gap: 18px; }

.projects-header {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
  color: rgba(20, 36, 72, 0.96);
}
.projects-eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(86, 116, 212, 0.9);
}
.projects-title-row {
  display: grid;
  gap: 8px;
}
.projects-title-row h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.3;
  color: rgba(16, 30, 74, 0.98);
  letter-spacing: -0.01em;
}
.projects-title-row p {
  margin: 0;
  font-size: 15px;
  color: rgba(34, 48, 92, 0.76);
  line-height: 1.6;
}
.dashboard-projects-header {
  margin: 0 0 28px;
}

#view-dashboard {
  padding-top: 48px;
}

.member-section {
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 가로 스크롤 방지 */
}
.member-section.is-loading .member-tab {
  opacity: 0.6;
  pointer-events: none;
}
.member-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible; /* 자식 요소(.member-tabs)의 스크롤 허용 */
  padding: 20px 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(236, 242, 255, 0.9), rgba(222, 248, 242, 0.9));
  box-shadow: 0 20px 42px rgba(12, 32, 90, 0.12);
}
.member-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  margin-top: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden; /* 가로 스크롤 방지 */
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(14, 32, 82, 0.1);
  border: 1px solid rgba(108, 142, 224, 0.12);
}
.member-filter {
  display: grid;
  gap: 8px;
  min-width: 220px;
}
.member-filter label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(44, 66, 128, 0.68);
}
.member-filter select {
  appearance: none;
  padding: 11px 42px 11px 16px;
  border-radius: 16px;
  border: 1px solid rgba(110, 138, 214, 0.24);
  background-color: rgba(248, 250, 255, 0.96);
  color: rgba(24, 42, 92, 0.9);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 12px 24px rgba(18, 40, 110, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) 50%;
  background-size: 12px 8px;
}
.member-filter select:focus {
  outline: none;
  border-color: rgba(88, 142, 236, 0.55);
  box-shadow: 0 16px 28px rgba(26, 64, 150, 0.14);
  transform: translateY(-1px);
}
.member-filter select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  background-color: rgba(244, 246, 252, 0.9);
}
.member-filter-search {
  display: grid;
  gap: 8px;
  min-width: 280px;
  flex: 1 1 300px;
}
.member-filter-search label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: rgba(44, 66, 128, 0.68);
}
.member-search-input {
  appearance: none;
  padding: 11px 16px;
  border-radius: 16px;
  border: 1px solid rgba(110, 138, 214, 0.24);
  background-color: rgba(248, 250, 255, 0.96);
  color: rgba(24, 42, 92, 0.9);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 12px 24px rgba(18, 40, 110, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}
.member-search-input:focus {
  outline: none;
  border-color: rgba(88, 142, 236, 0.55);
  box-shadow: 0 16px 28px rgba(26, 64, 150, 0.14);
  transform: translateY(-1px);
}
.member-search-input::placeholder {
  color: rgba(98, 120, 168, 0.6);
}
.member-filter-actions {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
}
.member-filter-reset {
  padding: 10px 18px;
  border-radius: 16px;
  border: none;
  background: rgba(234, 242, 255, 0.9);
  color: rgba(56, 96, 186, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(22, 44, 110, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.member-filter-reset:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(24, 52, 128, 0.14);
}
.member-filter-reset:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(18, 42, 110, 0.16);
}
.member-filter-reset:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}
.member-filter select::-ms-expand {
  display: none;
}
.member-filter select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23385FB4' d='M10.59.59 6 5.17 1.41.59 0 2l6 6 6-6z'/%3E%3C/svg%3E");
}
.member-filter select:disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238BA2D2' d='M10.59.59 6 5.17 1.41.59 0 2l6 6 6-6z'/%3E%3C/svg%3E");
}
.member-filter select option {
  color: rgba(24, 42, 92, 0.92);
}
.member-filter select option:disabled {
  color: rgba(98, 120, 168, 0.7);
}
.member-filter select option {
  font-weight: 500;
}
.member-filters .member-filter,
.member-filters .member-filter-search,
.member-filters .member-filter-actions {
  flex: 1 1 240px;
}
.member-filters .member-filter-actions {
  flex: 0 0 auto;
}
.member-filters .member-filter-actions .member-filter-reset {
  white-space: nowrap;
}
.member-filters .member-filter select {
  width: 100%;
}
.member-filters .member-filter select optgroup {
  font-weight: 700;
}
@media (max-width: 960px) {
  .member-filters {
    gap: 16px;
    padding: 16px 18px;
  }
  .member-filters .member-filter,
  .member-filters .member-filter-search,
  .member-filters .member-filter-actions {
    flex: 1 1 100%;
  }
  .member-filter-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
  .member-filter-reset {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 720px) {
  .member-toolbar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 18px 20px;
    gap: 18px;
  }
  .member-toolbar-text {
    justify-items: center;
  }
  .member-toolbar-text p {
    font-size: 13px;
  }
  .member-tabs {
    width: 100%;
    padding: 6px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .member-tabs::-webkit-scrollbar {
    display: none;
  }
  .member-tab {
    flex: 1 0 auto;
    padding: 9px 14px;
    font-size: 13px;
  }
  .member-tab-count {
    font-size: 11px;
  }
  .member-section {
    gap: 22px;
  }
}
@media (max-width: 1024px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
  .member-filter {
    min-width: 0;
  }
  .member-filter label {
    font-size: 11px;
  }
  .member-filter select {
    font-size: 13px;
    padding: 10px 36px 10px 14px;
  }
  .member-card {
    padding: 20px 18px;
    gap: 16px;
  }
  .member-card-title h3 {
    font-size: 18px;
  }
  .member-tags {
    gap: 6px;
  }
  .member-detail {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .member-detail-label {
    min-width: 0;
  }
  .member-detail-value {
    text-align: left;
  }
  .member-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .member-action {
    width: 100%;
    justify-content: center;
  }
}
.member-filters + .member-grid,
.member-filters + .member-empty {
  margin-top: 6px;
}
.member-toolbar-text {
  display: grid;
  gap: 6px;
  max-width: min(520px, 100%);
}
.member-toolbar-text h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  color: rgba(16, 32, 78, 0.98);
  letter-spacing: -0.01em;
}
.member-toolbar-text p {
  margin: 0;
  font-size: 14px;
  color: rgba(40, 58, 112, 0.76);
  line-height: 1.5;
}
.member-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(80, 112, 214, 0.12);
  overflow-x: auto; /* 가로 스크롤 허용 */
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox에서 스크롤바 숨김 */
  -ms-overflow-style: none; /* IE/Edge에서 스크롤바 숨김 */
  max-width: 100%; /* 부모 너비를 초과하지 않음 */
}
.member-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari에서 스크롤바 숨김 */
}
.member-tab-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  height: calc(100% - 16px);
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(82, 114, 228, 0.96), rgba(48, 188, 198, 0.96));
  box-shadow: 0 18px 28px rgba(40, 90, 180, 0.28);
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1), width 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, width;
  opacity: 0;
  pointer-events: none;
}
.member-tab {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  color: rgba(48, 68, 128, 0.74);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0; /* 탭이 축소되지 않도록 */
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}
.member-tab:hover {
  color: rgba(28, 48, 118, 0.94);
}
.member-tab:focus-visible {
  outline: 3px solid rgba(74, 112, 228, 0.35);
  outline-offset: 2px;
}
.member-tab.is-active {
  color: #f8fbff;
}
.member-tab-label {
  line-height: 1;
}
.member-tab-count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(70, 92, 160, 0.74);
}
.member-tab.is-active .member-tab-count {
  color: rgba(255, 255, 255, 0.85);
}
.member-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* grid 아이템이 축소될 수 있도록 */
  overflow-x: hidden; /* 가로 스크롤 방지 */
}
/* 프리미엄 카드는 일반 카드와 동일한 크기 */
.member-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(90, 120, 216, 0.12);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(12, 32, 90, 0.1), 0 2px 6px rgba(12, 32, 90, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  overflow-x: hidden; /* 가로 스크롤 방지 */
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* flex 아이템이 축소될 수 있도록 */
  box-sizing: border-box; /* padding 포함한 너비 계산 */
}
.member-card-premium {
  /* 일반 카드와 동일한 스타일 유지 (노란 테두리, 음영 제거) */
}
.member-card-ad {
  grid-column: 1 / -1;
  min-height: 120px;
  padding: 0;
  border: 1px dashed rgba(90, 120, 216, 0.3);
  background: rgba(248, 250, 255, 0.6);
}
.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(90, 120, 216, 0.25);
  border-radius: 20px 20px 0 0;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12, 32, 90, 0.12), 0 4px 8px rgba(12, 32, 90, 0.08);
  border-color: rgba(90, 120, 216, 0.2);
}
.member-card:hover::before {
  height: 5px;
}
.member-card-architect::before {
  background: rgba(78, 108, 222, 0.6);
}
.member-card-contractor::before {
  background: rgba(38, 186, 168, 0.6);
}
.member-card-interior::before {
  background: rgba(210, 140, 250, 0.6);
}
.member-card-header {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}
.member-card-logo-wrapper {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(248, 250, 255, 0.8);
  border: 1px solid rgba(90, 120, 216, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-card-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.member-card-logo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(90, 120, 216, 0.1), rgba(78, 108, 222, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(90, 120, 216, 0.4);
  font-size: 24px;
}
.member-card-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.member-card-title h3,
.member-card-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: rgba(14, 30, 76, 1);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
/* 프리미엄 카드 폰트 크기도 일반 카드와 동일 */
.member-card-subline {
  margin: 0;
  font-size: 14px;
  color: rgba(52, 68, 124, 0.75);
  font-weight: 500;
  line-height: 1.4;
}
.member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.member-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(78, 108, 222, 0.1);
  color: rgba(78, 108, 222, 1);
  text-transform: uppercase;
  width: fit-content;
  border: 1.5px solid rgba(78, 108, 222, 0.25);
}
.member-badge-role {
  font-size: 12px;
  padding: 7px 16px;
}
.member-admin-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}
.member-admin-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(90, 120, 216, 0.2);
  border-radius: 6px;
  font-size: 12px;
  color: rgba(16, 32, 78, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
}
.member-admin-checkbox:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(90, 120, 216, 0.4);
}
.member-admin-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
}
.member-admin-checkbox span {
  user-select: none;
  white-space: nowrap;
}
.member-premium-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.95), rgba(255, 152, 0, 0.95));
  color: rgba(140, 80, 0, 1);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
  z-index: 2;
}
.member-card:has(.member-admin-controls) .member-premium-badge {
  right: auto;
  left: 16px;
}
.member-card-edit-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(47, 76, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(47, 76, 255, 0.12);
}
.member-card-edit-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(47, 76, 255, 0.25);
  transform: translateY(-1px);
}
.member-card-edit-btn:active {
  transform: translateY(0);
}
.member-card-edit-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.member-card:has(.member-premium-badge) .member-card-edit-btn {
  top: 56px;
  right: 16px;
}
.member-card:has(.member-admin-controls) .member-card-edit-btn {
  top: 16px;
  right: 16px;
}
.member-card:has(.member-premium-badge):has(.member-admin-controls) .member-card-edit-btn {
  top: 56px;
  right: 16px;
}
.member-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.member-rating-stars {
  font-size: 16px;
  line-height: 1;
}
.member-rating-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 152, 0, 0.9);
}
.member-card-contractor .member-badge {
  background: rgba(38, 186, 168, 0.1);
  color: rgba(20, 132, 118, 1);
  border-color: rgba(38, 186, 168, 0.25);
}
.member-card-interior .member-badge {
  background: rgba(210, 140, 250, 0.1);
  color: rgba(132, 68, 184, 1);
  border-color: rgba(210, 140, 250, 0.25);
}
.member-badge-verified {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15)) !important;
  color: rgba(5, 150, 105, 1) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  text-transform: none !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}
.member-card-verified {
  border-color: rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 4px 20px rgba(12, 32, 90, 0.08), 0 1px 3px rgba(12, 32, 90, 0.06), 0 0 0 1px rgba(16, 185, 129, 0.1) inset !important;
}
.member-card-verified::before {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8)) !important;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
  color: rgba(5, 150, 105, 1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.verified-badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  color: rgba(5, 150, 105, 1);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  margin-left: 6px;
  vertical-align: middle;
}
.verification-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
  color: rgba(180, 83, 9, 1);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.verification-status-approved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
  color: rgba(5, 150, 105, 1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.verification-status-rejected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
  color: rgba(185, 28, 28, 1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.member-card-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.member-card-portfolio {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(90, 120, 216, 0.1);
}
.member-portfolio-thumb {
  flex: 1;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(90, 120, 216, 0.15);
  background: rgba(248, 250, 255, 0.5);
}
.member-card-body.muted {
  font-size: 14px;
  color: rgba(78, 92, 132, 0.7);
  font-style: italic;
  padding: 8px 0;
  flex: 1;
}
.member-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
  align-content: flex-start;
}
.member-tags li,
.member-tag-chip {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(78, 108, 222, 0.1);
  color: rgba(44, 62, 128, 0.95);
  border: 1.5px solid rgba(78, 108, 222, 0.2);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  height: 28px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.member-tags li:hover {
  background: rgba(78, 108, 222, 0.1);
  border-color: rgba(78, 108, 222, 0.3);
  transform: translateY(-1px);
}
.member-card-contractor .member-tags li {
  background: rgba(38, 186, 168, 0.06);
  color: rgba(26, 118, 106, 0.95);
  border-color: rgba(38, 186, 168, 0.15);
}
.member-card-contractor .member-tags li:hover {
  background: rgba(38, 186, 168, 0.1);
  border-color: rgba(38, 186, 168, 0.3);
}
.member-card-interior .member-tags li {
  background: rgba(210, 140, 250, 0.06);
  color: rgba(112, 64, 164, 0.95);
  border-color: rgba(210, 140, 250, 0.15);
}
.member-card-interior .member-tags li:hover {
  background: rgba(210, 140, 250, 0.1);
  border-color: rgba(210, 140, 250, 0.3);
}
.member-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
  flex-shrink: 0;
}
.member-introduction {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(90, 120, 216, 0.1);
  flex-shrink: 0;
}
.member-introduction-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(18, 36, 88, 0.85);
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.6em * 3);
}
.member-introduction-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-introduction-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(90, 120, 216, 0.2);
  background: rgba(248, 250, 255, 0.8);
  color: rgba(18, 36, 88, 0.9);
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  box-sizing: border-box;
}
.member-introduction-textarea:focus {
  outline: none;
  border-color: rgba(78, 108, 222, 0.5);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(78, 108, 222, 0.1);
}
.member-introduction-save {
  align-self: flex-end;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, rgba(78, 108, 222, 0.95), rgba(54, 78, 182, 0.95));
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(78, 108, 222, 0.3);
}
.member-introduction-save:hover {
  background: linear-gradient(135deg, rgba(78, 108, 222, 1), rgba(54, 78, 182, 1));
  box-shadow: 0 4px 10px rgba(78, 108, 222, 0.4);
  transform: translateY(-1px);
}
.member-detail-modal-content {
  display: grid;
  gap: 24px;
}
.member-detail-section {
  display: grid;
  gap: 8px;
}
.member-detail-section h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: rgba(28, 48, 104, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.member-detail-section p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(18, 36, 88, 0.9);
}
.member-detail-introduction {
  white-space: pre-wrap;
  word-break: break-word;
}
.member-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 0;
  border-bottom: 1px solid rgba(90, 120, 216, 0.08);
  flex-shrink: 0;
  min-height: 38px;
  box-sizing: border-box;
}
.member-detail:last-child {
  border-bottom: none;
}
.member-detail-label {
  font-weight: 600;
  color: rgba(28, 48, 104, 0.8);
  min-width: 100px;
  font-size: 13px;
}
.member-detail-value {
  text-align: left;
  color: rgba(18, 36, 88, 0.95);
  word-break: break-word;
  font-weight: 500;
}
.member-detail-value a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.member-detail-value a:hover {
  color: rgba(78, 108, 222, 1);
  text-decoration: underline;
}
.member-card-contractor .member-detail-value a:hover {
  color: rgba(38, 186, 168, 1);
}
.member-card-interior .member-detail-value a:hover {
  color: rgba(210, 140, 250, 1);
}

/* 포트폴리오 스타일 */
.portfolio-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.portfolio-item {
  border: 1px solid rgba(30, 110, 232, 0.12);
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
}
.portfolio-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.portfolio-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 300px;
}
.portfolio-image-clickable {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-image-clickable:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 이미지 미리보기 모달 */
.image-preview-modal {
  border: none;
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  max-height: 90dvh; /* 동적 뷰포트 높이 */
  background: transparent;
  overflow: visible;
}
.image-preview-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}
.image-preview-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
  max-height: 90dvh; /* 동적 뷰포트 높이 */
}
.image-preview-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1;
}
.image-preview-close:hover {
  background: #fff;
}
.image-preview-img {
  max-width: 90vw;
  max-height: 90vh;
  max-height: 90dvh; /* 동적 뷰포트 높이 */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.portfolio-overview {
  margin-bottom: 12px;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
  color: var(--text);
  line-height: 1.6;
}
.portfolio-overview strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.portfolio-descriptions {
  margin-top: 12px;
}
.portfolio-descriptions strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}
.portfolio-descriptions ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}
.portfolio-descriptions li {
  margin-bottom: 4px;
}

/* 포트폴리오 관리 스타일 */
.portfolio-management {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.portfolio-item-card {
  border: 1px solid rgba(30, 110, 232, 0.12);
  border-radius: 12px;
  padding: 20px;
  background: var(--panel);
}
.portfolio-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(30, 110, 232, 0.08);
}
.portfolio-item-header h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}
.portfolio-item-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.portfolio-image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.portfolio-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 200px;
  object-fit: cover;
}
.portfolio-image-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 71, 111, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.portfolio-image-delete:hover {
  background: var(--danger);
}
.portfolio-item-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.portfolio-item-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portfolio-item-fields label span {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}
.portfolio-item-fields input,
.portfolio-item-fields textarea {
  padding: 10px 12px;
  border: 1px solid rgba(30, 110, 232, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
}
.portfolio-item-fields input:focus,
.portfolio-item-fields textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.portfolio-item-fields textarea {
  resize: vertical;
  min-height: 80px;
}
.portfolio-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 110, 232, 0.08);
}
.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(90, 120, 216, 0.1);
  align-items: center;
}
.member-inline-ad {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 16px;
  border: 1px dashed rgba(90, 120, 216, 0.3);
  background: rgba(248, 250, 255, 0.6);
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-ad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.member-ad-badge {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(90, 120, 216, 0.15);
  color: rgba(44, 66, 128, 0.8);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.member-ad-text {
  margin: 0;
  font-size: 14px;
  color: rgba(52, 68, 124, 0.7);
}
.member-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(26, 44, 104, 0.9);
  border: 1.5px solid rgba(90, 120, 216, 0.2);
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(12, 32, 90, 0.04);
}
.member-action:hover {
  background: rgba(90, 120, 216, 0.08);
  color: rgba(20, 36, 96, 1);
  border-color: rgba(90, 120, 216, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(12, 32, 90, 0.08);
}
.member-action-primary {
  border: none;
  background: linear-gradient(135deg, rgba(78, 108, 222, 0.95), rgba(54, 78, 182, 0.95));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(78, 108, 222, 0.3);
  flex: 1;
  min-width: 140px;
}
.member-action-primary:hover {
  background: linear-gradient(135deg, rgba(78, 108, 222, 1), rgba(54, 78, 182, 1));
  box-shadow: 0 6px 16px rgba(78, 108, 222, 0.4);
  transform: translateY(-2px);
}
.member-action-secondary {
  border: 1.5px solid rgba(90, 120, 216, 0.3);
  background: rgba(255, 255, 255, 0.98);
  color: rgba(26, 44, 104, 0.9);
  flex: 0 1 auto;
}
.member-action-secondary:hover {
  background: rgba(248, 250, 255, 0.98);
  border-color: rgba(90, 120, 216, 0.4);
}
.member-action-tertiary {
  border: 1px solid rgba(90, 120, 216, 0.2);
  background: transparent;
  color: rgba(26, 44, 104, 0.8);
  font-size: 13px;
  padding: 9px 16px;
  flex: 0 1 auto;
}
.member-action-tertiary:hover {
  background: rgba(248, 250, 255, 0.6);
  color: rgba(26, 44, 104, 1);
}
.member-action.primary {
  border: none;
  background: linear-gradient(135deg, rgba(78, 108, 222, 0.95), rgba(54, 78, 182, 0.95));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(78, 108, 222, 0.3);
}
.member-action.primary:hover {
  background: linear-gradient(135deg, rgba(78, 108, 222, 1), rgba(54, 78, 182, 1));
  box-shadow: 0 6px 16px rgba(78, 108, 222, 0.4);
  transform: translateY(-2px);
}
.member-card-contractor .member-action.primary {
  background: linear-gradient(135deg, rgba(38, 186, 168, 0.95), rgba(20, 132, 118, 0.95));
  box-shadow: 0 4px 12px rgba(38, 186, 168, 0.3);
}
.member-card-contractor .member-action.primary:hover {
  background: linear-gradient(135deg, rgba(38, 186, 168, 1), rgba(20, 132, 118, 1));
  box-shadow: 0 6px 16px rgba(38, 186, 168, 0.4);
}
.member-card-interior .member-action.primary {
  background: linear-gradient(135deg, rgba(210, 140, 250, 0.95), rgba(132, 68, 184, 0.95));
  box-shadow: 0 4px 12px rgba(210, 140, 250, 0.3);
}
.member-card-interior .member-action.primary:hover {
  background: linear-gradient(135deg, rgba(210, 140, 250, 1), rgba(132, 68, 184, 1));
  box-shadow: 0 6px 16px rgba(210, 140, 250, 0.4);
}
.member-action[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}
.member-empty {
  padding: 36px 32px;
  border-radius: 26px;
  border: 1px dashed rgba(94, 126, 216, 0.35);
  background: rgba(230, 238, 255, 0.46);
  color: rgba(32, 48, 102, 0.78);
  display: grid;
  gap: 6px;
}
.member-empty p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.member-section.is-loading .member-empty {
  background: rgba(230, 238, 255, 0.3);
  border-style: dotted;
}

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.list-item {
  background: var(--panel);
  border: 1px solid rgba(30,110,232,0.14);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.project-card.type-architect {
  border-color: var(--architect-color-border);
  background: transparent;
  box-shadow: 0 20px 40px rgba(47, 76, 255, 0.12);
}
.project-card.type-contractor {
  border-color: var(--contractor-color-border);
  background: transparent;
  box-shadow: 0 20px 40px rgba(23, 190, 170, 0.12);
}
.project-card.is-own-project {
  border-width: 2px;
  box-shadow: 0 16px 32px rgba(0, 30, 60, 0.12);
}
.project-card.type-architect.is-own-project {
  border-color: var(--architect-color-border-strong);
  background: transparent;
  box-shadow: 0 20px 38px rgba(47, 76, 255, 0.22);
}
.project-card.type-contractor.is-own-project {
  border-color: var(--contractor-color-border-strong);
  background: transparent;
  box-shadow: 0 20px 38px rgba(23, 190, 170, 0.22);
}
.project-card.type-architect.is-own-project strong {
  color: var(--architect-color-deep);
}
.project-card.type-contractor.is-own-project strong {
  color: var(--contractor-color-deep);
}
.project-owner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(45,115,185,0.18);
  color: #1e4b91;
}
.project-owner-badge.is-architect {
  background: rgba(76, 94, 255, 0.18);
  color: #2b36b5;
}
.project-owner-badge.is-contractor {
  background: rgba(23, 190, 170, 0.22);
  color: #0d7569;
}
.project-card.type-architect.is-own-project .tags .tag.info {
  background: var(--architect-color-soft);
  color: var(--architect-color);
}
.project-card.type-contractor.is-own-project .tags .tag.info {
  background: var(--contractor-color-soft);
  color: var(--contractor-color);
}
.meta { color: var(--muted); font-size: 14px; }

/* 대시보드 요약 카드 */
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.summary-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.95));
  border: 1px solid rgba(47, 76, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(17, 27, 52, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 27, 52, 0.1);
}
.summary-card-value {
  font-size: 32px;
  font-weight: 700;
  color: rgba(16, 32, 74, 1);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.summary-card-label {
  font-size: 14px;
  color: rgba(101, 112, 140, 0.85);
  font-weight: 500;
}

/* 필터 칩 */
.filter-groups {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-group-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(101, 112, 140, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.filter-group-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: nowrap;
}
.filter-group-row .date-filter-group {
  flex-wrap: nowrap;
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(47, 76, 255, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(16, 32, 74, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.filter-chip:hover {
  background: rgba(47, 76, 255, 0.08);
  border-color: rgba(47, 76, 255, 0.3);
  transform: translateY(-1px);
}
.filter-chip.is-active {
  background: rgba(47, 76, 255, 0.15);
  border-color: rgba(47, 76, 255, 0.4);
  color: rgba(47, 76, 255, 1);
  font-weight: 600;
}

/* 프로젝트 레이아웃 (목록 + 사이드 패널) */
.projects-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}
.projects-main {
  min-width: 0;
}
.project-cards-wrapper {
  display: grid;
  gap: 20px;
}

/* 프로젝트 카드 */
.project-card {
  background: transparent;
  border: 1px solid rgba(47, 76, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(17, 27, 52, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: rgba(47, 76, 255, 0.3);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 27, 52, 0.12);
  border-color: rgba(47, 76, 255, 0.2);
}
.project-card:hover::before {
  opacity: 1;
}
.project-card.is-active {
  border-color: rgba(47, 76, 255, 0.3);
  box-shadow: 0 8px 24px rgba(47, 76, 255, 0.15);
  background: transparent;
}
.project-card.is-active::before {
  opacity: 1;
  background: rgba(47, 76, 255, 0.6);
}
/* 모바일에서는 활성화 상태 표시 안 함 (잔상 방지) */
@media (max-width: 1199px) {
  .project-card.is-active {
    border-color: inherit;
    box-shadow: inherit;
    background: inherit;
  }
  .project-card.is-active::before {
    opacity: 0;
    background: transparent;
  }
}

/* 프로젝트 카드 헤더 */
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.project-card-title-section {
  flex: 1;
  min-width: 0;
}
.project-card-title {
  font-size: 20px;
  font-weight: 700;
  color: rgba(16, 32, 74, 1);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}
.project-card-meta {
  font-size: 13px;
  color: rgba(101, 112, 140, 0.85);
  line-height: 1.5;
  margin-bottom: 12px;
}
.project-card-meta .project-owner-name {
  font-weight: 600;
  color: var(--text);
}
.project-card-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.project-card-status-chip.status-open {
  background: rgba(72, 100, 238, 0.12);
  color: rgba(72, 100, 238, 1);
}
.project-card-status-chip.status-contract {
  background: rgba(255, 173, 51, 0.18);
  color: #c37a08;
}
.project-card-status-chip.status-completed {
  background: rgba(227, 71, 89, 0.18);
  color: #c12439;
}

/* 프로젝트 카드 본문 */
.project-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.project-card-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-card-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(101, 112, 140, 0.75);
  margin-bottom: 4px;
}
.project-card-section-value {
  font-size: 14px;
  color: rgba(16, 32, 74, 0.9);
  font-weight: 500;
  line-height: 1.5;
}

/* 프로젝트 카드 푸터 */
.project-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(47, 76, 255, 0.08);
}
.project-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.project-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 프로젝트 타입별 색상 */
.project-card.type-architect {
  border-left-color: rgba(70, 92, 255, 0.3);
}
.project-card.type-architect::before {
  background: rgba(70, 92, 255, 0.5);
}
.project-card.type-contractor {
  border-left-color: rgba(23, 190, 170, 0.3);
}
.project-card.type-contractor::before {
  background: rgba(23, 190, 170, 0.5);
}
.project-card.type-interior {
  border-left-color: rgba(162, 98, 255, 0.3);
}
.project-card.type-interior::before {
  background: rgba(162, 98, 255, 0.5);
}

/* 사이드 패널 */
.project-detail-panel {
  position: sticky;
  top: 98px; /* 헤더 높이(74px) + 여백(24px) */
  height: fit-content;
  max-height: calc(100vh - 98px); /* 헤더 높이(74px) + 여백(24px) */
  max-height: calc(100dvh - 98px); /* 동적 뷰포트 높이 */
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(47, 76, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(17, 27, 52, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* 모바일에서만 hidden 시 완전히 숨김 */
@media (max-width: 1199px) {
  .project-detail-panel[hidden] {
    display: none !important;
    visibility: hidden !important;
  }
}
.project-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(47, 76, 255, 0.08);
  background: rgba(248, 250, 255, 0.5);
}
.project-detail-title {
  font-size: 18px;
  font-weight: 700;
  color: rgba(16, 32, 74, 1);
  margin: 0;
}
.project-detail-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(101, 112, 140, 0.7);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.project-detail-close:hover {
  color: rgba(16, 32, 74, 1);
}
.project-detail-close svg,
.project-detail-close path {
  pointer-events: none;
}
.project-detail-body {
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.project-detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 300px;
  text-align: center;
  color: rgba(101, 112, 140, 0.7);
  font-size: 14px;
  line-height: 1.6;
  padding: 40px 24px;
}
.project-detail-panel[hidden] .project-detail-empty {
  display: none;
}
.project-detail-section {
  margin-bottom: 24px;
}
.project-detail-section:last-child {
  margin-bottom: 0;
}
.project-detail-section-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(16, 32, 74, 0.9);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(47, 76, 255, 0.08);
}
.project-detail-content {
  display: grid;
  gap: 12px;
}

/* 반응형: 사이드 패널 레이아웃 */
@media (min-width: 1200px) {
  .projects-layout {
    grid-template-columns: 1fr 400px;
  }
  .project-detail-panel {
    position: sticky;
    top: 98px; /* 헤더 높이(74px) + 여백(24px) */
    max-height: calc(100vh - 98px); /* 헤더 높이(74px) + 여백(24px) */
    max-height: calc(100dvh - 98px); /* 동적 뷰포트 높이 */
  }
  /* 데스크톱에서는 hidden 속성이 있어도 패널 표시 (안내 메시지용) */
  .project-detail-panel[hidden] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  /* 프로젝트가 선택되었을 때는 X 버튼 표시 */
  .project-detail-panel:not([hidden]) .project-detail-close,
  .project-detail-panel[hidden] .project-detail-close:not([hidden]) {
    display: flex !important;
  }
}

@media (max-width: 1199px) {
  .projects-layout {
    position: relative;
  }
  .project-detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  .project-detail-panel:not([hidden]) {
    transform: translateX(0) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .project-detail-panel[hidden] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(100%) !important;
  }
  /* 모바일에서 닫기 버튼 항상 표시 */
  .project-detail-panel:not([hidden]) .project-detail-close {
    display: flex !important;
  }
  /* 배경 오버레이 - 별도 요소로 처리 */
  .project-detail-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    will-change: opacity;
  }
  .project-detail-backdrop:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }
  .project-detail-backdrop[hidden] {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 모바일 반응형 개선 */
@media (max-width: 768px) {
  .dashboard-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .summary-card {
    padding: 16px;
  }
  .summary-card-value {
    font-size: 24px;
  }
  .summary-card-label {
    font-size: 12px;
  }
  .filter-groups {
    gap: 16px;
  }
  .filter-group-label {
    font-size: 11px;
  }
  .filter-chips {
    gap: 6px;
  }
  .filter-chip {
    padding: 6px 12px;
    font-size: 12px;
  }
  .project-card {
    padding: 20px;
  }
  .project-card-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .project-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .project-card-actions {
    width: 100%;
  }
  .project-card-actions .btn {
    width: 100%;
  }
  .project-detail-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    box-sizing: border-box !important;
  }
  .project-detail-header {
    padding: 24px 24px !important;
    min-height: 64px;
  }
  .project-detail-title {
    font-size: 22px !important;
    font-weight: 700;
  }
  .project-detail-body {
    padding: 24px !important;
    font-size: 16px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  .project-detail-section {
    margin-bottom: 28px;
  }
  .project-detail-section-title {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  .project-detail-content {
    font-size: 16px !important;
    line-height: 1.7;
  }
  .project-detail-close {
    width: 44px;
    height: 44px;
    padding: 8px;
  }
  .project-detail-close svg {
    width: 24px;
    height: 24px;
  }
}

.project-table-wrapper { display: grid; gap: 20px; }
.project-table-scroll {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(47, 76, 255, 0.12);
  background: rgba(246, 248, 255, 0.92);
  box-shadow: 0 18px 36px rgba(17, 27, 52, 0.08);
}
.project-table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
}
.project-table thead th {
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(17, 27, 52, 0.75);
  background: linear-gradient(180deg, rgba(241, 244, 255, 0.96), rgba(233, 238, 255, 0.88));
  border-bottom: 2px solid rgba(47, 76, 255, 0.18);
}
.project-table tbody tr {
  background: rgba(255, 255, 255, 0.98);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}
.project-table tbody tr:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 16px rgba(17, 27, 52, 0.1);
  transform: translateY(-1px);
}
.project-table td {
  padding: 24px 24px;
  vertical-align: top;
  border-bottom: 1px solid rgba(47, 76, 255, 0.1);
}
.project-table th:nth-child(5),
.project-table td:nth-child(5) { width: 160px; }
.project-table tbody tr:last-child td { border-bottom: none; }
.project-row-architect td:first-child { border-left: 3px solid var(--architect-color-border-strong); }
.project-row-contractor td:first-child { border-left: 3px solid var(--contractor-color-border-strong); }
.project-row-interior td:first-child { border-left: 3px solid var(--interior-color-border-strong); }
.project-row-own td { background: rgba(239, 246, 255, 0.45); }
.project-row-architect.project-row-own td {
  background: rgba(47, 76, 255, 0.06);
}
.project-row-contractor.project-row-own td {
  background: rgba(23, 190, 170, 0.06);
}
.project-row-interior.project-row-own td {
  background: rgba(162, 98, 255, 0.08);
}

.rfq-project-group {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px 20px 18px 28px;
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.76);
  border: 1px solid rgba(30,110,232,0.14);
  box-shadow: 0 10px 22px rgba(20, 36, 78, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  --rfq-accent: rgba(70, 92, 255, 0.68);
}
.rfq-project-group::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--rfq-accent);
  pointer-events: none;
}
.rfq-project-group-architect {
  background: rgba(237, 242, 255, 0.92);
  border-color: rgba(70, 92, 255, 0.34);
  --rfq-accent: var(--architect-color-border-strong);
}
.rfq-project-group-contractor {
  background: rgba(220, 247, 242, 0.92);
  border-color: rgba(23, 190, 170, 0.32);
  --rfq-accent: var(--contractor-color-border-strong);
}
.rfq-project-group-interior {
  background: rgba(242, 232, 255, 0.94);
  border-color: rgba(162, 98, 255, 0.32);
  --rfq-accent: var(--interior-color-border-strong);
}
.rfq-project-group.rfq-project-own {
  box-shadow: 0 16px 32px rgba(20, 36, 78, 0.08);
  border-width: 2px;
}
.rfq-project-group-architect.rfq-project-own {
  background: rgba(47, 76, 255, 0.06);
  border-color: rgba(47, 76, 255, 0.24);
}
.rfq-project-group-contractor.rfq-project-own {
  background: rgba(23, 190, 170, 0.06);
  border-color: rgba(23, 190, 170, 0.24);
}
.rfq-project-group-interior.rfq-project-own {
  background: rgba(162, 98, 255, 0.08);
  border-color: rgba(162, 98, 255, 0.24);
}
.rfq-project-group-architect.rfq-project-own::before,
.rfq-project-group-contractor.rfq-project-own::before,
.rfq-project-group-interior.rfq-project-own::before {
  transform: translateX(-2px);
}
.project-row-highlight {
  animation: projectRowPulse 1.6s ease both;
  position: relative;
}
.project-row-highlight td {
  background: rgba(237, 244, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(120, 150, 240, 0.18);
}
.project-row-highlight::after {
  content: '';
  position: absolute;
  inset: 4px 10px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(112, 148, 240, 0.24), rgba(84, 214, 198, 0.18));
  opacity: 0.85;
  pointer-events: none;
  filter: blur(0.2px);
}
@keyframes projectRowPulse {
  0% {
    transform: translateY(-2px);
    box-shadow: 0 24px 42px rgba(24, 64, 150, 0.26);
  }
  55% {
    transform: translateY(-1px);
    box-shadow: 0 28px 46px rgba(28, 82, 182, 0.22);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 14px 28px rgba(26, 60, 148, 0.18);
  }
}
.project-filter-notice {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(30,110,232,0.12);
  border: 1px solid rgba(30,110,232,0.24);
  color: rgba(17, 32, 74, 0.82);
  font-size: 13px;
  text-align: center;
}

.rfq-filter-notice-wrapper {
  list-style: none;
  margin-bottom: 0;
}
.project-info-cell { display: grid; gap: 14px; }
.project-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.project-name { 
  font-size: 18px; 
  font-weight: 700; 
  color: rgba(16, 32, 74, 1); 
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.project-meta-text { 
  font-size: 13px; 
  color: rgba(101, 112, 140, 0.85);
  line-height: 1.5;
}
.project-meta-line { 
  line-height: 1.5;
  margin-bottom: 2px;
}
.project-owner-name {
  font-weight: 600;
  color: var(--text);
}
.project-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-desc {
  font-size: 13px;
  color: rgba(65, 76, 106, 0.8);
  line-height: 1.6;
  margin-top: 4px;
}
.project-status-cell {
  border-radius: 0;
  padding: 20px;
}
.project-status-cell .project-kv-row:first-child .project-kv-value {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.project-status-cell .project-kv-row:first-child .project-kv-value::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: middle;
  background: rgba(72, 100, 238, 0.9);
  box-shadow: 0 0 0 2px rgba(72, 100, 238, 0.2);
}
.project-status-cell.project-status-contract { background: none; }
.project-status-cell.project-status-contract .project-kv-row,
.project-status-cell.project-status-contract .project-kv-value {
  color: #8c540c;
}
.project-status-cell.project-status-contract .project-kv-label {
  color: rgba(140, 84, 12, 0.72);
}
.project-status-cell.project-status-contract .project-kv-row:first-child .project-kv-value::before {
  background: rgba(255, 157, 46, 0.85);
}
.project-status-cell.project-status-contract .project-kv-row:first-child .project-kv-value {
  color: #824608;
}
.project-status-cell.project-status-completed { background: none; }
.project-status-cell.project-status-completed .project-kv-row,
.project-status-cell.project-status-completed .project-kv-value {
  color: #8f2338;
}
.project-status-cell.project-status-completed .project-kv-label {
  color: rgba(143, 35, 56, 0.7);
}
.project-status-cell.project-status-completed .project-kv-row:first-child .project-kv-value::before {
  background: rgba(220, 66, 102, 0.85);
}
.project-info-stack {
  display: grid;
  gap: 10px;
}
.project-kv-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(30, 42, 70, 0.95);
  word-break: keep-all;
}
.project-status-cell .project-kv-row { color: rgba(24, 36, 64, 0.9); }
.project-kv-label {
  min-width: 80px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(101, 112, 140, 0.95);
  flex-shrink: 0;
  white-space: nowrap;
}
.project-kv-value {
  flex: 1;
  min-width: 0;
  color: rgba(17, 27, 52, 0.95);
  font-weight: 500;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.project-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.project-actions .btn { width: 100%; }
.project-actions .muted { font-size: 13px; color: rgba(101, 112, 140, 0.78); }
.project-empty { text-align: center; padding: 32px; }

@media (max-width: 960px) {
  .project-table { min-width: 100%; }
  .project-table thead { display: none; }
  .project-table tbody tr {
    display: block;
    margin-bottom: 18px;
    border-radius: 22px;
    box-shadow: 0 16px 28px rgba(17, 27, 52, 0.08);
    transform: none;
  }
  .project-table tbody tr:hover { transform: none; }
  .project-table tbody tr td {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: none;
    padding: 16px 18px;
  }
  .project-table tbody tr td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(101, 112, 140, 0.86);
  }
  .project-table tbody tr td:last-child {
    border-bottom: none;
  }
  .project-actions {
    align-items: stretch;
  }
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: var(--primary-100);
  border: 1px solid rgba(30,110,232,0.18);
  color: var(--primary-600);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  white-space: nowrap;
}
.tag.info { background: rgba(45,115,185,0.08); border-color: rgba(45,115,185,0.2); color: #285a95; }
.tag.status-contract { background: rgba(255,173,51,0.18); border-color: rgba(255,173,51,0.4); color: #c37a08; }
.tag.status-awaiting { background: rgba(246,140,31,0.16); border-color: rgba(246,140,31,0.38); color: #b5620a; }
.tag.status-completed { background: rgba(227,71,89,0.18); border-color: rgba(227,71,89,0.42); color: #c12439; }
.tag.intent-architect { background: rgba(70, 92, 255, 0.16); color: #2735c0; border-color: rgba(70, 92, 255, 0.32); }
.tag.intent-contractor { background: rgba(23, 190, 170, 0.18); color: #0c8074; border-color: rgba(23, 190, 170, 0.32); }
.tag.intent-interior { background: rgba(162, 98, 255, 0.18); color: #5a2fc9; border-color: rgba(162, 98, 255, 0.32); }
.tag.intent-both { background: rgba(146, 82, 255, 0.16); color: #5537d8; border-color: rgba(146,82,255,0.32); }
.muted { color: var(--muted); font-size: 13px; }
.empty {
  color: var(--muted);
  padding: 18px;
  text-align: center;
  border: 1px dashed rgba(30,110,232,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.7);
}
.empty.is-subtle { padding: 14px; border-radius: 12px; font-size: 14px; background: rgba(244,246,251,0.6); }

.list-group {
  background: var(--panel);
  border: 1px solid rgba(30,110,232,0.14);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}
.list-group-title { font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; }
.sublist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.modal { width: min(560px, 92vw); border: none; border-radius: 20px; padding: 0; background: var(--panel); color: var(--text); box-shadow: 0 24px 60px rgba(18,33,76,0.24); }
.modal::backdrop { background: rgba(20, 32, 60, 0.35); backdrop-filter: blur(3px); }
.form { padding: 24px; display: grid; gap: 16px; }
.form h3 { margin: 0; color: var(--text); }
.modal-request {
  position: relative;
  width: min(480px, 92vw);
  border: none;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(48,108,232,0.22), rgba(145,172,255,0.08), rgba(14,220,198,0.18));
  box-shadow: 0 32px 68px rgba(15, 35, 80, 0.28);
  color: var(--text);
  overflow: hidden;
}
.modal-request::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at -20% -20%, rgba(117,161,255,0.32), transparent 52%),
              radial-gradient(circle at 120% 40%, rgba(145,102,255,0.24), transparent 60%);
  opacity: 0.9;
}
.modal-request::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  border-radius: inherit;
  backdrop-filter: blur(18px);
}
.modal-request .request-type-form {
  padding: 32px 30px 26px;
  display: grid;
  gap: 24px;
  text-align: center;
  justify-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 620px;
  justify-content: center;
  position: relative;
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}
.modal-request .request-type-form h3 {
  font-size: 24px;
  font-weight: 800;
  color: #111f3a;
  letter-spacing: -0.015em;
}
.modal-request .request-type-form p {
  margin: 0;
  font-size: 14px;
  color: #4a5d7c;
  max-width: 80%;
}
.modal-request .request-type-options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.modal-request .request-type-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 26px 26px;
  border-radius: 26px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 20px 36px rgba(18, 33, 76, 0.16);
  color: inherit;
  background-size: 180% 180%;
  background-position: center;
  overflow: hidden;
  white-space: normal;
  text-align: left;
  width: 100%;
  min-height: 140px;
}
.modal-request .request-type-sheen {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255,255,255,0.75), transparent 55%);
  transition: opacity 0.25s ease;
}
.modal-request .request-type-btn:hover .request-type-sheen {
  opacity: 1;
}
.modal-request .request-type-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0) 42%);
  pointer-events: none;
  opacity: 0.9;
}
.modal-request .request-type-btn::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: rgba(255,255,255,0.18);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.modal-request .request-type-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  color: inherit;
  z-index: 1;
  line-height: 1.45;
  flex: 1 1 auto;
  justify-content: center;
  position: relative;
  padding-left: 4px;
}
.modal-request .request-type-label strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.modal-request .request-type-label small {
  font-size: 13px;
  font-weight: 500;
  color: rgba(17, 32, 66, 0.65);
  line-height: 1.5;
  display: block;
  word-break: keep-all;
  max-width: 420px;
}
.modal-request .request-type-btn[data-select-request="architect"] {
  background-image: linear-gradient(140deg, rgba(74,122,255,0.22), rgba(206,220,255,0.95), rgba(106,151,255,0.28));
  color: #1f4f9b;
  border-color: rgba(47,110,232,0.42);
}
.modal-request .request-type-btn[data-select-request="contractor"] {
  background-image: linear-gradient(140deg, rgba(22,206,174,0.22), rgba(204,245,233,0.95), rgba(24,178,156,0.28));
  color: #097e70;
  border-color: rgba(24,172,154,0.4);
}
.modal-request .request-type-btn[data-select-request="interior"] {
  background-image: linear-gradient(140deg, rgba(168,108,255,0.22), rgba(236,224,254,0.95), rgba(168,108,255,0.28));
  color: #5b2fc0;
  border-color: rgba(162,98,255,0.4);
}
.modal-request .request-type-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 54px rgba(18,33,76,0.22);
}
.modal-request .request-type-btn:hover::after {
  opacity: 0.35;
}
.modal-request .request-type-btn:focus-visible {
  outline: 3px solid rgba(47,76,255,0.35);
  outline-offset: 3px;
}
.modal-request .modal-actions { display: flex; justify-content: center; margin: 12px 0 0; padding: 0; }
.modal-request .modal-actions .btn { background: transparent; border: none; color: #303a52; font-weight: 600; font-size: 14px; padding: 0; min-width: auto; }
.modal-request .modal-actions .btn:hover { color: #1d2942; text-decoration: underline; box-shadow: none; transform: none; }
@media (max-width: 600px) {
  .modal-request .request-type-form {
    padding: 28px 22px 24px;
    gap: 20px;
  }
  .modal-request .request-type-form p {
    max-width: 100%;
  }
}
#formProject[data-mode="architect"] .contractor-only,
#formProject[data-mode="architect"] .interior-only { display: none !important; }
#formProject[data-mode="contractor"] .architect-only,
#formProject[data-mode="contractor"] .interior-only { display: none !important; }
#formProject[data-mode="interior"] .architect-only,
#formProject[data-mode="interior"] .contractor-only { display: none !important; }
.request-type-summary {
  display: none !important;
}
.request-sections {
  display: grid;
  gap: 26px;
  padding-top: 4px;
}
.request-section {
  position: relative;
  border-radius: 22px;
  padding: 28px;
  --request-surface-start: rgba(255,255,255,0.85);
  --request-surface-end: rgba(248,250,255,0.78);
  background: linear-gradient(150deg, var(--request-surface-start), var(--request-surface-end));
  border: 1px solid rgba(21, 38, 78, 0.08);
  box-shadow: 0 28px 48px rgba(20, 32, 70, 0.12);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  --request-border: rgba(21, 38, 78, 0.14);
  --request-border-strong: rgba(21, 38, 78, 0.24);
  --request-ring: rgba(47, 76, 255, 0.22);
  --request-glow-primary: rgba(120,150,255,0.06);
  --request-glow-secondary: rgba(152,120,255,0.04);
}
.request-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% -30%, var(--request-glow-primary), transparent 62%),
              radial-gradient(circle at 120% 20%, var(--request-glow-secondary), transparent 68%);
  pointer-events: none;
}
.request-section[data-section="architect"] {
  --request-border: var(--architect-color-border);
  --request-border-strong: var(--architect-color-border-strong);
  --request-ring: rgba(47, 76, 255, 0.24);
  --request-surface-start: rgba(248, 251, 255, 0.82);
  --request-surface-end: rgba(230, 238, 255, 0.74);
  --request-glow-primary: rgba(94, 132, 255, 0.06);
  --request-glow-secondary: rgba(149, 170, 255, 0.04);
}
.request-section[data-section="contractor"] {
  --request-border: var(--contractor-color-border);
  --request-border-strong: var(--contractor-color-border-strong);
  --request-ring: rgba(23, 190, 170, 0.25);
  --request-surface-start: rgba(242, 253, 250, 0.82);
  --request-surface-end: rgba(222, 246, 238, 0.74);
  --request-glow-primary: rgba(22, 206, 174, 0.06);
  --request-glow-secondary: rgba(23, 190, 170, 0.04);
}
.request-section[data-section="interior"] {
  --request-border: var(--interior-color-border);
  --request-border-strong: var(--interior-color-border-strong);
  --request-ring: rgba(162, 98, 255, 0.26);
  --request-surface-start: rgba(249, 244, 255, 0.82);
  --request-surface-end: rgba(235, 224, 255, 0.74);
  --request-glow-primary: rgba(162, 98, 255, 0.06);
  --request-glow-secondary: rgba(180, 134, 255, 0.04);
}
.request-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(21, 38, 78, 0.08);
  position: relative;
  z-index: 1;
}
.request-section-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(21, 32, 62, 0.92);
}
.request-section[data-section="contractor"] .request-section-title {
  color: rgba(18, 70, 64, 0.92);
}
.request-section[data-section="interior"] .request-section-title {
  color: rgba(62, 34, 116, 0.92);
}
.request-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  position: relative;
  z-index: 1;
}
.request-grid > .budget-group {
  display: contents;
}
.form-field {
  display: grid;
  gap: 10px;
  padding: 18px 20px 16px;
  border-radius: 18px;
  border: 1px solid var(--request-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.form-field-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(21, 32, 62, 0.74);
  letter-spacing: -0.01em;
}
.form-field input,
.form-field textarea,
.form-field select {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
}
.form-field input[type="number"]::-webkit-inner-spin-button,
.form-field input[type="number"]::-webkit-outer-spin-button {
  height: 16px;
}
.form-field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-field input[type="file"] {
  padding: 8px 0;
  font-size: 14px;
}
.form-field:focus-within {
  border-color: var(--request-border-strong);
  box-shadow: 0 0 0 4px var(--request-ring), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
}
.form-field-textarea,
.form-field-upload {
  grid-column: 1 / -1;
}
.request-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 32px 56px rgba(18, 33, 76, 0.16);
}
@media (max-width: 720px) {
  .request-section {
    padding: 24px 20px;
  }
  .request-grid {
    grid-template-columns: 1fr;
  }
  .form-field {
    padding: 16px 18px 14px;
  }
}
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input,
.form textarea,
.form select {
  background: #f8faff;
  border: 1px solid rgba(30,110,232,0.2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}
.form .form-field input,
.form .form-field textarea,
.form .form-field select {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.pill-switch { display: grid; gap: 8px; margin-bottom: 6px; }
.pill-switch-group { display: inline-flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 999px; font-size: 15px; font-weight: 700; color: #1e6ee8; }
.project-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--architect-color-soft);
  color: var(--architect-color);
  border: 1px solid var(--architect-color-border);
  margin-bottom: 16px;
}
.project-type-badge.contractor-only {
  background: var(--contractor-color-soft);
  color: var(--contractor-color);
  border: 1px solid var(--contractor-color-border);
}
.project-type-badge.interior-only {
  background: rgba(162, 98, 255, 0.18);
  color: #5a2fc9;
  border: 1px solid rgba(162, 98, 255, 0.35);
}
.rfq-project-status { display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(30,110,232,0.12); color: #1e6ee8; }
.rfq-project-status.is-contract { background: rgba(255,173,51,0.16); color: #c37a08; }
.rfq-project-status.is-completed { background: rgba(227,71,89,0.18); color: #c12439; }
.rfq-project-status.is-pending { background: rgba(255,173,51,0.16); color: #b35b07; }
.rfq-project-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(70, 92, 255, 0.16);
  color: #2a38ca;
}
.rfq-project-type.is-contractor {
  background: rgba(23, 190, 170, 0.18);
  color: #0f8576;
}
.rfq-project-type.is-interior {
  background: rgba(162, 98, 255, 0.18);
  color: #5a2fc9;
}
.rfq-project-section { display: grid; gap: 12px; }
.rfq-project-section-title { font-size: 13px; font-weight: 600; color: var(--muted); }
.rfq-project-section .sublist { gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.context {
  background: #f4f7ff;
  border: 1px solid rgba(30,110,232,0.18);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
}

.site-footer { border-top: 1px solid rgba(30,110,232,0.12); padding: 30px 0; color: var(--muted); text-align: center; }
.site-footer .footer-content { display: flex; flex-direction: column; gap: 12px; }
.site-footer .footer-info { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.6; }
.site-footer .footer-info p { margin: 0; }
.site-footer .footer-company-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.site-footer .footer-contact-phone { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--text); }
.site-footer .footer-phone-link { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
.site-footer .footer-phone-link:hover { color: var(--primary-dark, #1e6ee8); text-decoration: underline; }
.site-footer .footer-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.site-footer .footer-link { color: var(--muted); text-decoration: none; font-size: 13px; transition: color 0.2s ease; }
.site-footer .footer-link:hover { color: var(--text); }
.site-footer .footer-copyright { margin-top: 8px; font-size: 13px; }

.messages-pane {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  min-height: 320px;
}

.thread-list { 
  background: var(--panel); 
  border: 1px solid rgba(30,110,232,0.14); 
  border-radius: var(--radius); 
  display: grid; 
  grid-template-rows: auto 1fr; 
  box-shadow: var(--shadow);
  max-height: calc(100vh - 280px);
  max-height: calc(100dvh - 280px); /* 동적 뷰포트 높이 */
  min-height: 400px;
  align-self: start;
}
.thread-list-header { 
  padding: 16px 18px; 
  border-bottom: 1px solid rgba(30,110,232,0.12); 
  font-weight: 700; 
  flex-shrink: 0;
}
.threads { 
  list-style: none; 
  margin: 0; 
  padding: 12px; 
  display: grid; 
  gap: 10px; 
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  align-content: start;
}
.thread-project-group { 
  display: grid; 
  gap: 8px; 
  padding: 10px 12px; 
  border: 1px solid rgba(30,110,232,0.16); 
  border-radius: 14px; 
  background: rgba(248,250,255,0.7);
  box-shadow: 0 2px 6px rgba(30,110,232,0.06);
}
.thread-project-title { 
  font-size: 13px; 
  font-weight: 600; 
  color: #1d2c48; 
  padding: 4px 0 6px; 
  border-bottom: 1px solid rgba(30,110,232,0.1);
  margin-bottom: 2px;
}
.thread-project-items { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: grid; 
  gap: 8px; 
}
.thread-item { 
  border: 1px solid rgba(30,110,232,0.1); 
  border-radius: 12px; 
  padding: 12px 14px; 
  cursor: pointer; 
  display: grid; 
  gap: 6px; 
  background: rgba(255,255,255,0.9);
  transition: all 0.2s ease;
}

.thread-item:hover { 
  background: rgba(30,110,232,0.1); 
  border-color: rgba(30,110,232,0.2); 
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(30,110,232,0.1);
}
.thread-item.is-active { 
  background: rgba(30,110,232,0.15); 
  border-color: rgba(30,110,232,0.35); 
  box-shadow: 0 2px 10px rgba(30,110,232,0.15);
}
.thread-item-title { 
  font-weight: 600; 
  color: var(--text); 
  font-size: 14px;
  line-height: 1.4;
}
.thread-item-meta { 
  font-size: 12px; 
  color: var(--muted); 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
  line-height: 1.5;
}
.thread-item-meta.is-secondary { 
  color: rgba(40,55,95,0.65); 
  font-size: 11px;
}

.thread-view {
  background: var(--panel);
  border: 1px solid rgba(30,110,232,0.14);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 280px);
  max-height: calc(100dvh - 280px); /* 동적 뷰포트 높이 */
  min-height: 400px;
}

.thread-header {
  padding: 14px 18px;
  border-bottom: 1px solid #23293a;
  display: grid;
  gap: 4px;
}
.thread-header-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.thread-header-info { display: grid; gap: 4px; }
.thread-header-actions { display: flex; gap: 8px; }

.thread-header strong { font-size: 18px; }
.thread-header .meta { font-size: 13px; }

.message-list {
  padding: 20px 22px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(244,246,251,0.65) 0%, rgba(255,255,255,1) 140px);
  min-height: 0;
  max-height: 100%;
  align-content: start;
}

.message-item {
  display: grid;
  gap: 6px;
  max-width: 70%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f0f5ff;
  border: 1px solid rgba(30,110,232,0.16);
  color: var(--text);
}

.message-item.from-owner {
  margin-left: auto;
  margin-right: 0;
  background: rgba(30,110,232,0.12);
  border-color: rgba(30,110,232,0.22);
}

.message-item.from-architect,
.message-item.from-contractor {
  margin-left: auto;
  margin-right: 0;
}

.message-item.from-architect {
  background: rgba(146,82,255,0.12);
  border-color: rgba(146,82,255,0.24);
}

.message-item.from-contractor {
  background: rgba(15,185,177,0.14);
  border-color: rgba(15,185,177,0.28);
}

.message-item.message-system {
  max-width: 82%;
  margin: 0 auto;
  text-align: center;
  background: rgba(128, 138, 178, 0.16);
  border-color: rgba(128, 138, 178, 0.26);
  border-style: dashed;
  color: rgba(35, 44, 68, 0.9);
  padding: 14px 20px;
}

.message-item.message-system-has-actions {
  background: rgba(128, 138, 178, 0.16);
  border-style: dashed;
}

.message-item.message-system-closed {
  max-width: 76%;
  background: rgba(44, 54, 79, 0.08);
  border-color: rgba(44, 54, 79, 0.18);
  border-style: solid;
  color: rgba(35, 44, 68, 0.78);
  text-align: left;
  padding: 16px 20px;
}

.message-item.message-system-contract {
  max-width: 84%;
  margin: 12px auto;
  background: linear-gradient(145deg, #fff8ec 0%, #ffe9c4 100%);
  border: 1px solid rgba(243, 156, 18, 0.45);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(240, 173, 78, 0.25);
  color: #5a3b06;
  text-align: left;
  padding: 18px 22px;
}

.message-item.message-system-contract .message-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.message-item.message-system-contract .message-meta {
  color: rgba(90, 59, 6, 0.65);
  font-weight: 500;
}

.message-item.message-system-contract-warning {
  background: linear-gradient(155deg, #fff1f1 0%, #ffd6d6 100%);
  border-color: rgba(231, 76, 60, 0.45);
  box-shadow: 0 10px 24px rgba(231, 76, 60, 0.2);
  color: #6e1b1b;
}

.message-item.message-system-contract-warning .message-meta {
  color: rgba(110, 27, 27, 0.65);
}

.message-item.message-system-closed .message-text {
  font-weight: 600;
  font-size: 14px;
}

.message-item.message-system-closed .message-meta {
  color: rgba(35, 44, 68, 0.55);
}

.message-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.message-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.message-badge-contract {
  background: rgba(255, 255, 255, 0.7);
  color: #d35400;
  border: 1px solid rgba(243, 156, 18, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.message-badge-contract::before {
  background: #f39c12;
  box-shadow: 0 0 6px rgba(243, 156, 18, 0.6);
}

.message-badge-contract.is-warning {
  background: rgba(255, 255, 255, 0.8);
  color: #c0392b;
  border-color: rgba(231, 76, 60, 0.36);
}

.message-badge-contract.is-warning::before {
  background: #e74c3c;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}

.message-item.message-system .message-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.message-item.message-system .message-actions .btn {
  padding: 7px 16px;
}

.message-item.is-self {
  box-shadow: 0 8px 16px rgba(30,110,232,0.14);
  font-weight: 500;
  margin-left: 0;
  margin-right: auto;
}

.message-sender { font-weight: 600; font-size: 13px; }
.message-text { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.message-meta { font-size: 11px; color: var(--muted); }

.from-owner .message-meta { color: rgba(45,62,98,0.65); }
.from-architect .message-meta,
.from-contractor .message-meta { color: rgba(45,62,98,0.55); }
.message-item.message-system .message-meta { color: rgba(35, 44, 68, 0.6); }

.message-form {
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(30,110,232,0.12);
  display: grid;
  gap: 12px;
  background: var(--panel);
}

.message-form textarea {
  resize: vertical;
  min-height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(30,110,232,0.18);
  padding: 12px 14px;
  font-size: 14px;
  background: #f8faff;
  color: var(--text);
}

.modal input[type="text"],
.modal input[type="number"],
.modal input[type="file"],
.modal textarea,
.modal select { font-family: inherit; }

/* 프로젝트 참여 요청 모달의 select 요소 스타일 */
#inviteProjectSelect {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#inviteProjectSelect option {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.rfq-architect-only.is-hidden { display: none; }

.modal input[type="file"] {
  border: 1px solid rgba(30,110,232,0.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8faff;
  color: var(--text);
}

.rfq-card-header {
  align-items: flex-start;
  gap: 16px;
}
.rfq-card-header-main {
  display: grid;
  gap: 8px;
  flex: 1;
}
.rfq-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.list-item.rfq-card {
  position: relative;
  padding: 18px 20px 18px 28px;
  border-radius: 14px;
  border: 1px solid rgba(30,110,232,0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(20, 36, 78, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
  --rfq-card-accent: rgba(70, 92, 255, 0.68);
}
.list-item.rfq-card::before {
  display: none;
}
.list-item.rfq-card-architect {
  --rfq-card-accent: var(--architect-color-border-strong);
}
.list-item.rfq-card-contractor {
  --rfq-card-accent: var(--contractor-color-border-strong);
}
.list-item.rfq-card-interior {
  --rfq-card-accent: var(--interior-color-border-strong);
}
.list-item.rfq-card-architect.rfq-card-own {
  background: rgba(47, 76, 255, 0.06);
  border-color: rgba(47, 76, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(47, 76, 255, 0.18);
}
.list-item.rfq-card-contractor.rfq-card-own {
  background: rgba(23, 190, 170, 0.06);
  border-color: rgba(23, 190, 170, 0.2);
  box-shadow: inset 0 0 0 1px rgba(23, 190, 170, 0.18);
}
.list-item.rfq-card-interior.rfq-card-own {
  background: rgba(162, 98, 255, 0.08);
  border-color: rgba(162, 98, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(162, 98, 255, 0.18);
}
.rfq-card-highlight { border: 1px solid rgba(30,110,232,0.35); background: rgba(30,110,232,0.12); box-shadow: 0 12px 24px rgba(30,110,232,0.18); }
.list-item.rfq-card-muted {
  background: var(--panel);
  border-color: rgba(30,110,232,0.08);
  box-shadow: none;
  color: rgba(20, 36, 78, 0.28);
  opacity: var(--rfq-muted-opacity, 0.45);
}
.list-item.rfq-card-muted strong {
  color: rgba(20, 36, 78, 0.34);
}
.list-item.rfq-card-muted .meta,
.list-item.rfq-card-muted .muted {
  color: rgba(20, 36, 78, 0.25);
}
.list-item.rfq-card-muted .tag {
  opacity: 0.28;
}
.list-item.rfq-card-own {
  border-color: rgba(82, 102, 240, 0.42);
  background: rgba(82, 102, 240, 0.08);
  box-shadow: 0 14px 28px rgba(82, 102, 240, 0.16);
}
.list-item.rfq-card-own strong {
  color: rgba(20, 36, 78, 0.82);
}
.list-item.rfq-card-own .tag {
  opacity: 1;
}
.list-item.rfq-card-own.rfq-card-muted {
  opacity: var(--rfq-muted-opacity, 0.45);
}
.tag-own {
  background: rgba(82, 102, 240, 0.18);
  color: rgba(33, 46, 120, 0.9);
  font-weight: 600;
}
.rfq-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rfq-lowest-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: linear-gradient(135deg, #ffda7f, #ffb347);
  color: #623605;
  font-weight: 700;
  font-size: 13px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(255, 179, 71, 0.35);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.rfq-lowest-ribbon::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0.85;
}
.rfq-fastest-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: linear-gradient(135deg, #9af3e0, #47d3b0);
  color: #055343;
  font-weight: 700;
  font-size: 13px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(71, 203, 172, 0.32);
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.rfq-fastest-ribbon::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0.85;
}
.tag-muted {
  background: rgba(120, 132, 168, 0.14);
  color: rgba(60, 72, 102, 0.65);
  border-color: rgba(120, 132, 168, 0.24);
}
.tag-service {
  background: rgba(226, 238, 255, 0.45);
  color: rgba(30, 58, 102, 0.75);
  border-color: rgba(70, 92, 255, 0.2);
  font-weight: 600;
}
.tag-service-architect {
  background: rgba(216, 230, 255, 0.5);
  color: rgba(28, 54, 118, 0.82);
}
.tag-service-contractor {
  background: rgba(210, 246, 234, 0.52);
  color: rgba(18, 92, 74, 0.82);
}
.tag-service-interior {
  background: rgba(236, 228, 255, 0.55);
  color: rgba(84, 52, 150, 0.82);
}
.tag-company {
  background: rgba(237, 242, 255, 0.56);
  color: rgba(30, 40, 90, 0.82);
  border-color: rgba(70, 92, 255, 0.2);
}
.tag-company-architect {
  background: rgba(226, 234, 255, 0.66);
  color: rgba(32, 46, 128, 0.88);
  border-color: rgba(70, 92, 255, 0.32);
}
.tag-company-contractor {
  background: rgba(205, 245, 235, 0.6);
  color: rgba(16, 92, 78, 0.84);
  border-color: rgba(23, 190, 170, 0.32);
}
.tag-company-interior {
  background: rgba(236, 226, 255, 0.66);
  color: rgba(86, 52, 168, 0.86);
  border-color: rgba(162, 98, 255, 0.36);
}
.tag-amount {
  background: rgba(226, 238, 255, 0.5);
  color: rgba(24, 54, 120, 0.82);
  border-color: rgba(70, 92, 255, 0.24);
}
.tag-amount-architect {
  background: rgba(216, 230, 255, 0.6);
  color: rgba(24, 48, 120, 0.9);
  border-color: rgba(70, 92, 255, 0.36);
}
.tag-amount-contractor {
  background: rgba(206, 246, 236, 0.58);
  color: rgba(20, 100, 86, 0.88);
  border-color: rgba(23, 190, 170, 0.34);
}
.tag-amount-interior {
  background: rgba(238, 226, 255, 0.6);
  color: rgba(90, 54, 172, 0.88);
  border-color: rgba(162, 98, 255, 0.38);
}

.rfq-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.contracts-pane { display: grid; grid-template-columns: 260px 1fr; gap: 18px; min-height: 320px; }
.contract-list { background: var(--panel); border: 1px solid rgba(30,110,232,0.14); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow); }
.contract-list-header { padding: 16px 18px; border-bottom: 1px solid rgba(30,110,232,0.12); font-weight: 700; letter-spacing: 0.3px; }
.contract-list .list.contracts { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; overflow-y: auto; }
.contract-list .list.contracts .contract-card { border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; gap: 6px; transition: background 0.15s ease, border 0.15s ease; background: transparent; }
.contract-card-title { font-weight: 600; color: var(--text); }
.contract-card .contract-card-meta { font-size: 12px; color: var(--muted); }
.contract-list .list.contracts .contract-card:hover { background: rgba(30,110,232,0.08); border-color: rgba(30,110,232,0.16); }
.contract-list .list.contracts .contract-card.is-active { background: rgba(30,110,232,0.18); border-color: rgba(30,110,232,0.3); }
.contract-detail { background: var(--panel); border: 1px solid rgba(30,110,232,0.14); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; }
.contract-detail-header { padding: 16px 20px; border-bottom: 1px solid rgba(30,110,232,0.12); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.contract-detail-header .meta { color: var(--muted); }
.contract-detail-body { padding: 18px 20px; display: grid; gap: 16px; overflow-y: auto; }
.contract-detail-body label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.contract-detail-body textarea { resize: vertical; min-height: 140px; border-radius: 12px; border: 1px solid rgba(30,110,232,0.18); padding: 12px 14px; background: #f8faff; color: var(--text); }
.contract-detail-body input[type="file"] { border: 1px solid rgba(30,110,232,0.18); border-radius: 12px; padding: 10px 12px; background: #f8faff; color: var(--text); }
.contract-detail-actions { display: flex; gap: 10px; justify-content: flex-end; }
.contract-summary { background: rgba(30,110,232,0.08); border: 1px solid rgba(30,110,232,0.18); border-radius: 12px; padding: 14px; color: var(--muted); display: grid; gap: 8px; }
.contract-summary.contract-completed { background: rgba(227,71,89,0.12); border-color: rgba(227,71,89,0.32); color: #c12439; }
.contract-summary strong { color: var(--text); }
.contract-summary .contract-text { white-space: pre-wrap; color: var(--text); }
.contract-template-fieldset { border: 1px solid rgba(30,110,232,0.18); border-radius: 14px; padding: 16px 18px 18px; margin: 0 0 18px; background: rgba(30,110,232,0.06); display: grid; gap: 12px; }
.contract-template-fieldset legend { font-weight: 600; color: #1b3a75; padding: 0 6px; }
.contract-template-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contract-template-actions-left { display: flex; gap: 8px; flex-wrap: wrap; }
.contract-template-actions-right { display: flex; gap: 8px; }
.contract-print-btn {
  background: linear-gradient(135deg, #2d4ef7 0%, #1b38c2 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 18px rgba(30, 78, 247, 0.18);
}
.contract-print-btn:hover {
  background: linear-gradient(135deg, #2445e0 0%, #122fa9 100%);
  box-shadow: 0 14px 22px rgba(18, 47, 169, 0.22);
}
.contract-guidance { border: 1px dashed rgba(30,110,232,0.32); border-radius: 12px; padding: 14px 16px; background: rgba(30,110,232,0.04); display: grid; gap: 10px; margin-bottom: 16px; }
.contract-guidance strong { color: #1b3a75; }
.contract-guidance ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: var(--text); }
.contract-guidance .muted { color: var(--muted); font-size: 13px; }
.contract-template-viewer { border: 1px solid rgba(30,110,232,0.18); border-radius: 12px; min-height: 320px; background: #fff; overflow: hidden; }
.contract-template-viewer iframe { width: 100%; height: 75vh; min-height: 520px; border: 0; background: #fff; }
.contract-template-viewer.contract-template-viewer-empty { display: flex; align-items: center; justify-content: center; }
.contract-template-placeholder { color: var(--muted); font-size: 14px; text-align: center; padding: 32px 24px; line-height: 1.6; }
.contract-template-card { background: rgba(30,110,232,0.06); border: 1px solid rgba(30,110,232,0.18); border-radius: 14px; padding: 16px; display: grid; gap: 12px; margin-bottom: 18px; }
.contract-template-card.is-completed { background: rgba(30,110,232,0.04); }
.contract-template-card strong { color: #1b3a75; }

.collab-pane { display: grid; grid-template-columns: 260px 1fr; gap: 18px; min-height: 340px; }
.collab-projects { background: var(--panel); border: 1px solid rgba(30,110,232,0.14); border-radius: var(--radius); display: grid; grid-template-rows: auto 1fr; box-shadow: var(--shadow); }
.collab-projects-header { padding: 16px 18px; border-bottom: 1px solid rgba(30,110,232,0.12); font-weight: 700; }
.collab-projects .list.collab { list-style: none; margin: 0; padding: 10px; display: grid; gap: 10px; overflow-y: auto; }
.collab-projects .collab-card { border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; cursor: pointer; display: grid; gap: 4px; transition: background 0.15s ease, border 0.15s ease; background: transparent; }
.collab-projects .collab-card:hover { background: rgba(30,110,232,0.08); border-color: rgba(30,110,232,0.16); }
.collab-projects .collab-card.is-active { background: rgba(30,110,232,0.18); border-color: rgba(30,110,232,0.3); }
.collab-projects .collab-card strong { font-size: 15px; color: var(--text); }
.collab-projects .collab-card .meta { font-size: 12px; }

.collab-board { background: var(--panel); border: 1px solid rgba(30,110,232,0.14); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr auto; }
.collab-board-header { padding: 18px 20px; border-bottom: 1px solid rgba(30,110,232,0.12); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.collab-board-header .muted { font-size: 13px; }
.collab-board-posts { padding: 20px; display: grid; gap: 14px; overflow-y: auto; }
.collab-post { border: 1px solid rgba(30,110,232,0.14); border-radius: 14px; padding: 14px 16px; background: rgba(248,250,255,0.72); display: grid; gap: 8px; }
.collab-post .post-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.collab-post .post-content { color: var(--text); white-space: pre-wrap; }
.collab-post .post-attachment { font-size: 12px; color: var(--primary-500); display: flex; align-items: center; gap: 6px; }

.collab-post-form { padding: 16px 20px 20px; border-top: 1px solid rgba(30,110,232,0.12); display: grid; gap: 12px; }
.collab-post-form label { width: 100%; display: grid; gap: 6px; }
.collab-post-form textarea { width: 100%; }
.collab-post-form.is-disabled { opacity: 0.6; }
.collab-form-notice { font-size: 13px; }
.collab-post-form textarea { resize: vertical; min-height: 100px; border-radius: 12px; border: 1px solid rgba(30,110,232,0.18); padding: 12px 14px; background: #f8faff; color: var(--text); }
.collab-post-form input[type="file"] { border: 1px solid rgba(30,110,232,0.18); border-radius: 12px; padding: 10px 12px; background: #f8faff; color: var(--text); }

.list-notice { margin-bottom: 12px; padding: 14px 16px; border: 1px solid rgba(30,110,232,0.18); border-radius: 14px; background: rgba(30,110,232,0.08); color: var(--muted); }

@media (max-width: 1400px) {
  .role-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .role-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .container { padding: 0 18px; }
  .role-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: 80vh; min-height: 80dvh; padding-bottom: 100px; }
  .hero-container { margin-top: 140px; }
  .hero-title { font-size: clamp(2rem, 6vw, 2.5rem); }
  .hero-description { margin-bottom: 32px; }
  .messages-pane { grid-template-columns: 1fr; }
  .thread-list { order: 2; max-height: 400px; min-height: 300px; }
  .thread-view { order: 1; min-height: 300px; max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); }
  .contracts-pane { grid-template-columns: 1fr; }
  .contract-list { order: 2; }
  .contract-detail { order: 1; min-height: 300px; }
  .collab-pane { grid-template-columns: 1fr; }
  .collab-projects { order: 2; }
  .collab-board { order: 1; min-height: 320px; }
  .diagram-track { grid-template-columns: 1fr; }
  .diagram-track::before { top: auto; bottom: auto; left: 50%; width: 2px; height: calc(100% - 80px); transform: translateX(-50%); }
  .diagram-step::before { left: 50%; top: -20px; transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(30,110,232,0.18); }
  .diagram-step:last-child::before { left: 50%; }
}

@media (max-width: 780px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .topbar-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .container {
    padding: 0 16px;
  }
  .header-inner {
    gap: 18px;
    width: 100%;
    min-width: 0;
    overflow: visible;
    padding-right: 0 !important;
    margin-right: 0 !important;
  }
  .nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    gap: 0;
    min-width: 0;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    flex: 0 0 auto;
    flex-shrink: 1;
  }
  .nav-auth {
    width: auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* 환영 메시지가 있을 때만 간격 적용 */
  .nav-auth .nav-greeting:not([hidden]) ~ * {
    margin-left: 8px;
  }
  .nav-greeting {
    font-size: 13px;
    white-space: nowrap !important;
    text-align: center;
    flex-shrink: 0 !important;
    min-width: max-content !important;
    max-width: none !important;
    width: max-content !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 0 !important;
    margin-left: 0;
    order: -1;
  }
  .nav-link {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .tabs {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    padding: 8px;
    scroll-padding: 0 8px;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs .tab-indicator {
    left: 8px;
    top: 8px;
    z-index: 0;
  }
  .tab {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: fit-content;
    padding: 12px 20px;
    font-size: 14px;
    z-index: 10;
    position: relative;
    overflow: visible;
    text-overflow: clip;
    isolation: isolate;
  }
  .tab.is-active {
    color: #fff !important;
    background: transparent;
    z-index: 10;
    position: relative;
  }
  .tab.is-active * {
    position: relative;
    z-index: 1;
    color: #fff !important;
  }
  .dashboard-tabs-bar {
    overflow: visible;
  }
  .tab:first-child {
    margin-left: 0;
  }
  .tab:last-child {
    margin-right: 0;
  }
  .tab-content {
    padding: 20px 18px;
  }
  .dashboard-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    overflow: visible;
    position: relative;
  }
  .dashboard-tabs-bar .tabs {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  .dashboard-tabs-bar .tabs::-webkit-scrollbar {
    display: none;
  }
  .dashboard-tabs-bar .tabs .tab {
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
  }
  .tab-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .tab-actions .btn {
    width: 100%;
  }
  .tab-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .tab-toolbar .toolbar-left,
  .tab-toolbar .toolbar-right {
    width: 100%;
  }
  .tab-toolbar .toolbar-left > *,
  .tab-toolbar .toolbar-right > * {
    width: 100%;
  }
  .date-filter-group {
    width: 100%;
    justify-content: flex-start;
  }
  .date-filter {
    width: 100%;
  }
  .date-filter input[type="date"] {
    width: 100%;
    min-width: 0;
    height: 40px;
    line-height: 1.5;
    box-sizing: border-box;
  }
  .project-actions .btn {
    width: 100%;
  }
  .list-group {
    padding: 18px;
  }
  .profile-container {
    gap: 20px;
  }
  .profile-card {
    padding: 20px;
  }
  .profile-info-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .profile-info-primary {
    flex-wrap: wrap;
    gap: 8px;
  }
  .profile-info p {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .notification-panel {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(360px, 92vw);
  }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; height: auto; padding: 16px 0; }
  .nav { 
    gap: 16px; 
    padding-left: 0;
    padding-right: 0;
  }
  .nav-auth {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: auto;
    flex-wrap: nowrap;
    flex-shrink: 0 !important;
    margin-left: 0 !important;
    margin-right: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none;
    box-sizing: border-box;
  }
  /* nav-auth 내부 요소들의 기본 여백 제거 */
  .nav-auth > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* 환영 메시지가 있을 때만 간격 적용 */
  .nav-auth .nav-greeting:not([hidden]) ~ * {
    margin-left: 8px !important;
  }
  .nav-greeting {
    font-size: 12px;
    white-space: nowrap !important;
    text-align: center;
    padding: 0 !important;
    line-height: 1.2;
    flex-shrink: 0 !important;
    min-width: max-content !important;
    max-width: none !important;
    width: max-content !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: clip !important;
    margin-left: 0;
  }
  .nav-link {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .hero-section { min-height: 75vh; min-height: 75dvh; padding-bottom: 120px; }
  .hero-container { margin-top: 120px; }
  .hero-title { font-size: clamp(1.75rem, 5vw, 2rem); }
  .hero-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btn {
    width: 100%;
    justify-content: center;
  }
  .autobuild-bar { padding: 10px 0; }
  .autobuild-bar-inner { 
    flex-direction: row; 
    align-items: center; 
    justify-content: flex-end;
    gap: 10px; 
    flex-wrap: nowrap;
  }
  .autobuild-promo-text { 
    font-size: 12px; 
    white-space: nowrap;
  }
  .nav-link-autobuild { 
    width: auto; 
    justify-content: center; 
    font-size: 12px; 
    padding: 8px 14px; 
    flex-shrink: 0;
  }
  .cta-row { width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .overview-badges { grid-template-columns: 1fr; }
  .pipeline-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pipeline-header p { max-width: none; }
  .pipeline-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar {
    font-size: 12px;
  }
  .topbar-inner {
    align-items: stretch;
  }
  .nav {
    gap: 12px;
  }
  .nav-link {
    padding: 10px 12px;
  }
  .tab {
    padding: 12px 20px;
    font-size: 14px;
    min-width: fit-content;
    white-space: nowrap;
    z-index: 10;
    position: relative;
    overflow: visible;
    text-overflow: clip;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
  .tab.is-active {
    color: #fff;
    background: transparent;
    z-index: 10;
    position: relative;
  }
  .tabs .tab-indicator {
    z-index: 0;
  }
  .dashboard-tabs-bar {
    overflow: visible;
    position: relative;
  }
  .dashboard-tabs-bar .tabs {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }
  .dashboard-tabs-bar .tabs::-webkit-scrollbar {
    display: none;
  }
  .dashboard-tabs-bar .tabs .tab {
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 0;
  }
  .tabs {
    padding: 8px 12px;
    scroll-padding: 0 12px;
  }
  .tabs .tab-indicator {
    left: 12px;
  }
  .project-detail-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    box-sizing: border-box !important;
  }
  .project-detail-header {
    padding: 22px 20px !important;
    min-height: 60px;
  }
  .project-detail-title {
    font-size: 20px !important;
    font-weight: 700;
  }
  .project-detail-body {
    padding: 22px 20px !important;
    font-size: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
  .project-detail-section {
    margin-bottom: 24px;
  }
  .project-detail-section-title {
    font-size: 15px !important;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 9px;
  }
  .project-detail-content {
    font-size: 15px !important;
    line-height: 1.7;
  }
  .project-detail-close {
    width: 40px;
    height: 40px;
    padding: 6px;
  }
  .project-detail-close svg {
    width: 22px;
    height: 22px;
  }
  .tab-toolbar {
    gap: 12px;
  }
  .filter-toggle {
    font-size: 12px;
  }
  .tab-content {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .list-group {
    padding: 16px;
  }
}

.btn.outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn.outline:hover { background: rgba(255,255,255,0.2); }
.contract-detail-actions .btn.outline {
  border-color: rgba(30,110,232,0.3);
  color: var(--primary);
  background: rgba(30,110,232,0.08);
}
.contract-detail-actions .btn.outline:hover {
  background: rgba(30,110,232,0.16);
  border-color: rgba(30,110,232,0.4);
}

.cta-row a.btn[href="#about"] {
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(8, 20, 48, 0.25);
  backdrop-filter: blur(8px);
}
.cta-row a.btn[href="#about"]:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.78);
  color: #ffffff;
}

.diagram-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  position: relative;
  align-items: center;
}
.diagram-track::before { display: none; }
.diagram-step {
  position: relative;
  background: rgba(8, 16, 40, 0.45);
  border: 1px solid rgba(102, 136, 238, 0.3);
  border-radius: 20px;
  padding: 24px 22px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 36px rgba(8, 18, 48, 0.22);
  color: rgba(224, 232, 255, 0.9);
}
.diagram-step::after {
  display: block;
  content: "";
  position: absolute;
  top: 50%;
  right: -24px;
  width: 38px;
  height: 26px;
  background: linear-gradient(90deg, rgba(118, 160, 255, 0.55), rgba(64, 206, 190, 0.55));
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%, 30% 50%);
  transform: translateY(-50%);
  box-shadow: 0 12px 22px rgba(10, 22, 48, 0.22);
}
.diagram-step:last-child::after { display: none; }

.multi-select {
  position: relative;
  display: grid;
  gap: 8px;
}

.multi-select-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(116,134,255,0.4);
  padding: 13px 15px;
  font-size: 15px;
  background: rgba(10, 16, 40, 0.78);
  color: #f7f8ff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.multi-select-toggle:hover,
.multi-select-toggle:focus {
  border-color: rgba(132,152,255,0.75);
  box-shadow: 0 0 0 4px rgba(47,76,255,0.22);
  outline: none;
}

.multi-select-toggle .multi-select-caret {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.multi-select-toggle .multi-select-caret::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(195,205,255,0.7);
  border-bottom: 2px solid rgba(195,205,255,0.7);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.multi-select.is-open .multi-select-toggle .multi-select-caret::before {
  transform: rotate(-135deg) translateY(2px);
}

.multi-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(116,134,255,0.45);
  background: rgba(8, 14, 34, 0.96);
  box-shadow: 0 26px 48px rgba(4, 16, 56, 0.55);
  backdrop-filter: blur(14px);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
}

.multi-select.is-open .multi-select-panel {
  display: flex;
}

.multi-select-panel .multi-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: rgba(211,218,255,0.88);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
}

.multi-select-option:hover {
  background: rgba(47, 76, 255, 0.12);
  color: #ffffff;
}

.multi-select-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #556aff;
  margin: 0;
  flex: 0 0 auto;
}

.multi-select-hint {
  font-size: 12px;
  color: rgba(211,218,255,0.68);
}

.profile-edit-field .multi-select-toggle {
  background: rgba(47, 76, 255, 0.08);
  border-color: rgba(47, 76, 255, 0.18);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  font: inherit;
  line-height: 1.45;
  text-align: left;
}

.profile-edit-field .multi-select,
.profile-edit-field .multi-select-toggle,
.profile-edit-field .multi-select-option,
.profile-edit-field .multi-select-toggle [data-multiselect-value] {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
}

.profile-edit-field .multi-select-toggle:hover,
.profile-edit-field .multi-select-toggle:focus {
  border-color: rgba(94, 132, 240, 0.5);
  box-shadow: 0 0 0 3px rgba(94, 132, 240, 0.16);
  background: rgba(47, 76, 255, 0.12);
}

.profile-edit-field .multi-select-toggle .multi-select-caret::before {
  border-color: rgba(94, 108, 168, 0.7);
}

.profile-edit-field .multi-select-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(47, 76, 255, 0.18);
  box-shadow: 0 18px 36px rgba(18, 42, 120, 0.12);
  backdrop-filter: blur(0);
}

.profile-edit-field .multi-select-option {
  color: var(--text);
  font: inherit;
}

.profile-edit-field .multi-select-option:hover {
  background: rgba(47, 76, 255, 0.12);
  color: var(--primary-600);
}

.profile-edit-field .multi-select-option input[type="checkbox"] {
  accent-color: var(--primary-500, #556aff);
}

.multi-select-toggle [data-multiselect-value] {
  flex: 1;
  text-align: left;
  font: inherit;
  color: inherit;
}

/* Admin Users Management Styles */
/* .admin-users-container는 아래 공통 스타일로 이동됨 */

.admin-users-header {
  margin-top: 0;
  margin-bottom: 48px;
  padding-top: 0;
}

.admin-users-header-content {
  margin-bottom: 0;
}

.admin-users-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.admin-users-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.admin-users-search-wrapper {
  margin: 32px 0 0 0;
}

.admin-users-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 600px;
}

.admin-search-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.admin-users-search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  border: 2px solid rgba(47, 76, 255, 0.15);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.admin-users-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 76, 255, 0.1);
}

.admin-users-search-input::placeholder {
  color: var(--muted);
}

.admin-search-clear {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: rgba(111, 111, 111, 0.1);
  border: none;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1;
}

.admin-search-clear:hover {
  background: rgba(111, 111, 111, 0.2);
  color: var(--text);
}

.admin-search-results {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.admin-users-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 48px;
}

.admin-stat-card {
  background: var(--panel);
  border: 1px solid rgba(47, 76, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(17, 27, 52, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 27, 52, 0.08);
}

.admin-stat-card-owner {
  border-color: rgba(111, 111, 111, 0.2);
}

.admin-stat-card-architect {
  border-color: var(--architect-color-border);
}

.admin-stat-card-contractor {
  border-color: var(--contractor-color-border);
}

.admin-stat-card-interior {
  border-color: var(--interior-color-border);
}

.admin-stat-card-material-supplier {
  border-color: rgba(255, 152, 0, 0.35);
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}

.admin-stat-card-owner .admin-stat-value {
  color: #666;
}

.admin-stat-card-architect .admin-stat-value {
  color: var(--architect-color);
}

.admin-stat-card-contractor .admin-stat-value {
  color: var(--contractor-color);
}

.admin-stat-card-interior .admin-stat-value {
  color: var(--interior-color);
}

.admin-stat-card-material-supplier .admin-stat-value {
  color: #ff9800;
}

.admin-stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.admin-users-section {
  margin-top: 0;
  margin-bottom: 48px;
}

.admin-users-section-header {
  margin-bottom: 24px;
}

.admin-users-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}

.admin-section-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  margin-left: auto;
}

.admin-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.admin-user-card {
  background: var(--panel);
  border: 1px solid rgba(47, 76, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(17, 27, 52, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.admin-user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 27, 52, 0.08);
  border-color: rgba(47, 76, 255, 0.2);
}

.admin-user-card[data-user-role="architect"] {
  border-color: var(--architect-color-border);
}

.admin-user-card[data-user-role="architect"]:hover {
  border-color: var(--architect-color-border-strong);
}

.admin-user-card[data-user-role="contractor"] {
  border-color: var(--contractor-color-border);
}

.admin-user-card[data-user-role="contractor"]:hover {
  border-color: var(--contractor-color-border-strong);
}

.admin-user-card[data-user-role="interior"] {
  border-color: var(--interior-color-border);
}

.admin-user-card[data-user-role="interior"]:hover {
  border-color: var(--interior-color-border-strong);
}

.admin-user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.admin-user-card-main {
  flex: 1;
  min-width: 0;
}

.admin-user-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-user-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

.admin-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-verified-badge svg {
  width: 12px;
  height: 12px;
}

.admin-user-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.admin-role-badge-owner {
  background: rgba(111, 111, 111, 0.1);
  color: #666;
}

.admin-role-badge-architect {
  background: var(--architect-color-soft);
  color: var(--architect-color-deep);
}

.admin-role-badge-contractor {
  background: var(--contractor-color-soft);
  color: var(--contractor-color-deep);
}

.admin-role-badge-interior {
  background: var(--interior-color-soft);
  color: var(--interior-color-deep);
}

.admin-role-badge-material-supplier {
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
}

.admin-user-company {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.admin-delete-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(239, 71, 111, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 71, 111, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.admin-delete-btn:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 71, 111, 0.3);
}

.admin-delete-btn svg {
  width: 14px;
  height: 14px;
}

.admin-user-card-body {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(47, 76, 255, 0.08);
}

.admin-user-info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-user-info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 80px;
}

.admin-user-info-value {
  font-size: 14px;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  flex: 1;
}

.admin-user-info-value.admin-user-id {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--muted);
  background: rgba(47, 76, 255, 0.05);
  padding: 4px 8px;
  border-radius: 6px;
  word-break: break-all;
}

.admin-muted {
  color: var(--muted);
  font-style: italic;
}

.admin-users-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 16px;
}

/* 관리자 탭 스타일 */
.admin-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 30px 0 18px;
}

.admin-tabs-bar .tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(12, 22, 52, 0.08);
  border: 1px solid rgba(47,76,255,0.14);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  margin: 0;
}

.admin-tabs-bar .tab-indicator {
  position: absolute;
  top: 8px;
  left: 8px;
  height: calc(100% - 16px);
  background: linear-gradient(120deg, var(--primary) 0%, #6b7bff 100%);
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  box-shadow: 0 4px 12px rgba(47, 76, 255, 0.25);
}

.admin-tabs-bar .tab {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.55);
  color: rgba(17,27,52,0.6);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 14px;
  font-weight: 600;
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 15px;
}

.admin-tabs-bar .tab:not(.is-active):hover {
  color: var(--text);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(17,27,52,0.12);
}

.admin-tabs-bar .tab.is-active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.is-active {
  display: block;
}

/* 회원 관리와 문의 관리 컨테이너 패딩 통일 - 제목 위치를 동일하게 맞춤 */
.admin-users-container,
.admin-inquiries-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 40px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 40px;
}

/* 탭 컨텐츠 영역 패딩 통일 */
.admin-tab-content {
  display: none;
  padding-top: 0;
}

.admin-tab-content.is-active {
  display: block;
}

.admin-inquiries-header {
  margin-top: 0;
  margin-bottom: 48px;
  padding-top: 0;
}

.admin-inquiries-header-content {
  margin-bottom: 0;
}

.admin-inquiries-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.admin-inquiries-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.admin-inquiries-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
}

.admin-stat-card-new {
  border-left: 4px solid var(--primary);
}

.admin-stat-card-read {
  border-left: 4px solid var(--accent);
}

.admin-stat-card-replied {
  border-left: 4px solid #10b981;
}

.admin-inquiries-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-inquiry-card {
  background: var(--panel);
  border: 2px solid rgba(47, 76, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.2s;
}

.admin-inquiry-card:hover {
  border-color: rgba(47, 76, 255, 0.3);
  box-shadow: 0 4px 12px rgba(47, 76, 255, 0.1);
}

.admin-inquiry-card.inquiry-status-new {
  border-left: 4px solid var(--primary);
  background: rgba(47, 76, 255, 0.02);
}

.admin-inquiry-card.inquiry-status-read {
  border-left: 4px solid var(--accent);
}

.admin-inquiry-card.inquiry-status-replied {
  border-left: 4px solid #10b981;
}

.admin-inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(47, 76, 255, 0.1);
}

.admin-inquiry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-inquiry-status-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.admin-inquiry-status-badge.inquiry-status-new {
  background: rgba(47, 76, 255, 0.1);
  color: var(--primary);
}

.admin-inquiry-status-badge.inquiry-status-read {
  background: rgba(17, 187, 170, 0.1);
  color: var(--accent);
}

.admin-inquiry-status-badge.inquiry-status-replied {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.admin-inquiry-date {
  font-size: 14px;
  color: var(--muted);
}

.admin-inquiry-actions {
  display: flex;
  gap: 8px;
}

.admin-inquiry-body {
  display: grid;
  gap: 16px;
}

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

.admin-inquiry-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-inquiry-field > div {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.admin-inquiry-field a {
  color: var(--primary);
  text-decoration: none;
}

.admin-inquiry-field a:hover {
  text-decoration: underline;
}

.admin-inquiry-subject {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.admin-inquiry-message {
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 16px;
  background: rgba(47, 76, 255, 0.02);
  border-radius: 8px;
  line-height: 1.8;
}

.admin-inquiries-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 768px) {
  .admin-inquiries-container {
    padding: 24px 16px;
  }

  .admin-inquiries-title {
    font-size: 24px;
  }

  .admin-inquiries-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .admin-inquiry-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .admin-inquiry-actions {
    width: 100%;
  }

  .admin-inquiry-actions .btn {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .admin-tabs-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .admin-tabs-bar .tabs {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .admin-tabs-bar .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .admin-tabs-bar .tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  
  .admin-users-container {
    padding: 24px 16px;
  }

  .admin-users-title {
    font-size: 24px;
  }

  .admin-users-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .admin-stat-card {
    padding: 20px 16px;
  }

  .admin-stat-value {
    font-size: 24px;
  }

  .admin-users-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .admin-user-card {
    padding: 20px;
  }

  .admin-user-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-delete-btn {
    width: 100%;
    justify-content: center;
  }

  .admin-user-info-item {
    flex-direction: column;
    gap: 4px;
  }

  .admin-user-info-value {
    text-align: left;
  }
}

/* Welcome Popup Styles */
.modal-welcome {
  width: min(600px, 92vw);
  max-width: 600px;
  border-radius: 24px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 32px 80px rgba(18, 33, 76, 0.2), 0 0 0 1px rgba(45, 115, 185, 0.08);
  overflow: hidden;
}

.modal-welcome::backdrop {
  background: rgba(20, 32, 60, 0.4);
  backdrop-filter: blur(6px);
}

.welcome-popup-form {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.welcome-popup-header {
  background: linear-gradient(135deg, rgba(45, 115, 185, 0.08) 0%, rgba(45, 115, 185, 0.02) 100%);
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(45, 115, 185, 0.1);
}

.welcome-popup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, #2D73B9 0%, #1a5490 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(45, 115, 185, 0.3);
}

.welcome-popup-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #111b34;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.welcome-popup-subtitle {
  margin: 0;
  font-size: 15px;
  color: rgba(101, 112, 140, 0.85);
  font-weight: 500;
  line-height: 1.5;
}

.welcome-popup-content {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}


.welcome-popup-features {
  display: grid;
  gap: 12px;
}

.welcome-popup-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(45, 115, 185, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(45, 115, 185, 0.1);
  transition: all 0.2s ease;
}

.welcome-popup-feature-item:hover {
  background: rgba(45, 115, 185, 0.08);
  border-color: rgba(45, 115, 185, 0.2);
  transform: translateX(4px);
}

.welcome-popup-feature-item svg {
  flex-shrink: 0;
}

.welcome-popup-feature-item span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(17, 27, 52, 0.9);
  line-height: 1.5;
}


.welcome-popup-actions {
  display: flex;
  gap: 12px;
  padding: 24px 32px 32px;
  margin: 0;
  justify-content: center;
  border-top: 1px solid rgba(45, 115, 185, 0.1);
  background: rgba(248, 251, 255, 0.5);
}

.welcome-popup-actions .btn {
  min-width: 140px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.welcome-popup-actions .btn-outline {
  background: #ffffff;
  border: 1.5px solid rgba(45, 115, 185, 0.3);
  color: rgba(17, 27, 52, 0.85);
}

.welcome-popup-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(45, 115, 185, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 115, 185, 0.15);
}

.welcome-popup-actions .btn.primary {
  background: linear-gradient(135deg, #2D73B9 0%, #1a5490 100%);
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(45, 115, 185, 0.3);
}

.welcome-popup-actions .btn.primary:hover {
  background: linear-gradient(135deg, #1a5490 0%, #2D73B9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 115, 185, 0.4);
}

.welcome-popup-actions .btn.primary svg {
  transition: transform 0.2s ease;
}

.welcome-popup-actions .btn.primary:hover svg {
  transform: translateX(2px);
}

@media (max-width: 600px) {
  .modal-welcome {
    width: 94vw;
    border-radius: 20px;
  }

  .welcome-popup-header {
    padding: 24px 20px 20px;
  }

  .welcome-popup-title {
    font-size: 24px;
  }

  .welcome-popup-subtitle {
    font-size: 14px;
  }

  .welcome-popup-content {
    padding: 24px 20px;
    gap: 20px;
  }

  .welcome-popup-feature-item {
    padding: 10px 14px;
  }

  .welcome-popup-feature-item span {
    font-size: 13px;
  }

  .welcome-popup-actions {
    flex-direction: column;
    padding: 20px;
  }

  .welcome-popup-actions .btn {
    width: 100%;
    min-width: auto;
  }
}

/* Intro Video Modal Styles */
.modal-video {
  width: min(900px, 92vw);
  max-width: 900px;
  border-radius: 24px;
  padding: 0;
  background: #000000;
  box-shadow: 0 32px 80px rgba(18, 33, 76, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.modal-video::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.video-modal-form {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.video-modal-content {
  position: relative;
  width: 100%;
  padding: 0;
  background: #000000;
}

.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 0;
  backdrop-filter: blur(4px);
}

.video-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  transform: scale(1.1);
}

.video-modal-close:active {
  transform: scale(0.95);
}

.intro-video-player {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  outline: none;
}

.intro-video-player::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

.intro-video-player::-webkit-media-controls-play-button,
.intro-video-player::-webkit-media-controls-pause-button {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .modal-video {
    width: 94vw;
    border-radius: 16px;
  }

  .video-modal-close {
    top: 12px;
    right: 12px;
    padding: 8px;
  }

  .intro-video-player {
    max-height: 70vh;
  }
}

