/*
   S-Core Dream 폰트 정의
*/
@font-face {
  font-family: 'S-Core Dream';
  src: url('/townE/resources/fonts/SCDream4.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'S-Core Dream';
  src: url('/townE/resources/fonts/SCDream5.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'S-Core Dream';
  src: url('/townE/resources/fonts/SCDream6.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*
   CSS 변수 정의
*/
:root {
  /* 메인 컬러 */
  --color-primary-yellow: #FFAE00;
  --color-primary-orange: #FF6733;
  --color-primary-purple: #6369DD;
  --color-primary-blue: #4CA0FF;
  --color-primary-green: #51D72F;
  --color-primary-green-dark: #1A8100;
  
  /* 텍스트 컬러 */
  --color-text-black: #414141;
  --color-text-gray: #999999;
  --color-text-white: #ffffff;
  
  /* 배경 컬러 */
  --color-bg-light: #F4F5F9;
  --color-bg-white: #ffffff;
  --color-bg-dark: #414141;
  --color-bg-footer: #464646;
  
  /* 보더 컬러 */
  --color-border: #e0e0e0;
  --color-border-light: #dbdbdb;
  --color-border-gray: #999;

  /* 레이아웃 */
  --content-max-width: 1400px;
  --header-height: 70px;
  --sub-header-height: 36px;
  
  /* 폰트 크기 (rem 단위로 html의 font-size에 따라 자동 배율 적용) */
  --font-size-xs: 0.75rem;       /* 12px (기본 16px 기준) */
  --font-size-sm: 0.875rem;      /* 14px (기본 16px 기준) */
  --font-size-base: 1rem;        /* 16px (기본 16px 기준) */
  --font-size-lg: 1.125rem;      /* 18px (기본 16px 기준) */
  --font-size-xl: 1.25rem;       /* 20px (기본 16px 기준) */
  --font-size-3xl: 2.25rem;       /* 36px (기본 16px 기준) */
  --font-size-4xl: 2.5rem;       /* 40px (기본 16px 기준) */
  
  /* 간격 */
  --spacing-xs: 0.25rem;         /* 4px */
  --spacing-sm: 0.5rem;          /* 8px */
  --spacing-smd: 0.75rem;        /* 12px */
  --spacing-md: 1rem;            /* 16px */
  --spacing-lg: 1.5rem;          /* 24px */
  --spacing-xl: 2rem;            /* 32px */
}

/*
   리셋 및 기본 스타일
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'S-Core Dream', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--color-text-black);
  background: var(--color-bg-white);
  line-height: 1.6;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;           
  padding: 0 35px 0 12px; 
  box-sizing: border-box; 
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*
   공통 레이아웃
*/
.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-start {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.shrink-0 {
  flex-shrink: 0;
}

/**
 * Lenis 부드러운 스크롤 (body에 lenis lenis-smooth 클래스 시)
 */
html.lenis,
html.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis-smooth body {
  overflow: visible;
}

html.lenis-smooth body {
  overflow-x: hidden;
  overflow-y: scroll;
}

/*
   반응형 (공통)
*/
@media (max-width: 1440px) {
  .container {
    padding: 0 30px;
  }
}

@media (max-width: 1024px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
}

/* 공통 컴포넌트 스타일: 탭, 검색박스, 정렬, 페이지네이션, 프로필, 좋아요/댓글, 카드, 리스트 페이지 */


/*
   공통 컴포넌트 - 탭
*/
.tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.tab-item {
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text-gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.tab-item:hover {
  color: var(--color-text-black);
}

.tab-item.active {
  color: var(--color-text-black);
  font-weight: 600;
}

/*
   공통 컴포넌트 - 검색박스
*/
.search-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.search-select {
  position: relative;
}

.search-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  height: 40px;
  min-width: 100px;
  padding: 0 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-bg-white);
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  cursor: pointer;
  transition: border-color 0.2s;
}

.search-select-trigger:hover {
  border-color: var(--color-text-gray);
}

.search-select-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.search-select-icon.rotate {
  transform: rotate(180deg);
}

.search-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.search-select-list {
  list-style: none;
}

.search-select-item {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-select-item:hover {
  background-color: var(--color-bg-light);
}

.search-select-item.active {
  color: var(--color-primary-green-dark);
  font-weight: 500;
}

.search-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}

.search-input {
  width: 220px;
  height: 40px;
  padding: 0 0.75rem;
  border: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  outline: none;
}

.search-input::placeholder {
  color: var(--color-text-gray);
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 40px;
  background-color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background-color: var(--color-bg-light);
}

.search-btn:hover img {
  content: url('/townE/resources/images/layout/ic_search_purple.svg');
}

.search-btn img {
  width: 20px;
  height: 20px;
}

.search-box .search-btn img,
.search-box-compact .search-btn img {
  width: 17px;
  height: 17px;
}


/*
   공통 컴포넌트 - 정렬 탭
*/
.sort-tabs {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.sort-tab {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.sort-tab:hover {
  color: var(--color-text-black);
}

.sort-tab.active {
  color: var(--color-primary-orange);
  font-weight: 500;
}

/*
   공통 컴포넌트 - 검색 결과
*/
.search-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: var(--spacing-xl);
  max-width: 100%;
}

.search-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.search-header {
  margin-bottom: var(--spacing-xl);
  text-align: center;
  max-width: 100%;
}

.search-box-large {
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease;
}

.search-box-large:focus-within {
  border-color: var(--color-primary-orange);
}

/* 검색 페이지 오른쪽 인기검색어 카드  */
.search-sidebar {
  flex-shrink: 0;
  width: 280px;
  position: sticky;
  top: calc(var(--header-height, 64px) + 1rem);
}

.search-popular-rank {
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.search-popular-rank-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.search-popular-rank-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.search-popular-rank-date {
  flex-shrink: 0;
  font-size: 0.6875rem;
  color: #888;
  font-weight: 500;
}

.search-popular-rank-title-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.search-popular-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.search-popular-rank-list li {
  margin: 0;
  padding: 0;
}

.search-popular-rank-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  color: #444;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-popular-rank-item:hover {
  background: rgba(255, 107, 53, 0.08);
  color: var(--color-primary-orange);
}

.search-popular-rank-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  background: #f0f0f0;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-popular-rank-item:hover .search-popular-rank-num {
  background: rgba(255, 107, 53, 0.15);
  color: var(--color-primary-orange);
}

.search-popular-rank-item:nth-child(1) .search-popular-rank-num { font-weight: 800; color: #c2410c; }
.search-popular-rank-item:nth-child(2) .search-popular-rank-num { font-weight: 800; color: #ea580c; }
.search-popular-rank-item:nth-child(3) .search-popular-rank-num { font-weight: 800; color: #f97316; }

.search-popular-rank-term {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* 반응형 전용: 검색창 위 인기검색어 가로 롤링 (기본 숨김) */
.search-popular-roll-mobile {
  display: none;
}

.search-input-large {
  flex: 1;
  height: 48px;
  font-size: 1rem;
  padding: 0 20px;
  border: none;
  outline: none;
  background: #fff;
  color: #333;
}

.search-input-large::placeholder {
  color: #999;
}

.search-btn-large {
  width: 56px;
  height: 48px;
  background: var(--color-primary-orange);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-btn-large:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.search-btn-large:active {
  transform: scale(0.98);
}

.search-btn-large img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.search-result-info {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.search-result-info strong {
  color: var(--color-primary-orange);
}

.search-count {
  color: var(--color-primary-orange);
  font-weight: 600;
  font-size: var(--font-size-lg);
}

/* 검색 결과 리스트 */
.search-result-list {
  margin-bottom: var(--spacing-xl);
}

.search-result-item {
  display: block;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.search-result-item:first-of-type {
  border-top: 2px solid #333;
}

.search-result-item:hover {
  background-color: #fafafa;
}

.search-result-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.search-result-title mark {
  background: none;
  color: var(--color-primary-orange);
  font-weight: 700;
}

.search-result-content {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-content mark {
  background: none;
  color: var(--color-primary-orange);
  font-weight: 600;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--text-tertiary);
}

.search-result-meta .meta-author::after {
  content: '|';
  margin-left: var(--spacing-md);
  color: var(--border-light);
}

/* 검색 결과 없음 */
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.search-empty.hide {
  display: none;
}

.search-empty-icon {
  margin-bottom: var(--spacing-lg);
}

.search-empty-icon img {
  width: 80px;
  height: 80px;
  opacity: 0.6;
}

.search-empty-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.search-empty-desc {
  font-size: var(--font-size-sm);
  color: var(--text-tertiary);
}

/*
   공통 컴포넌트 - 페이지네이션
*/
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--color-bg-light);
  border-radius: 50%;
}

.pagination-btn img {
  width: 16px;
  height: 16px;
}

.pagination-first img,
.pagination-last img {
  width: 18px; /* 더블 화살표는 약간 더 크게 */
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.pagination-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination-num:hover {
  color: var(--color-text-black);
  background-color: var(--color-bg-light);
}

.pagination-num.active {
  color: var(--color-text-white);
  background-color: var(--color-primary-purple);
  font-weight: 500;
}


/*
   공통 컴포넌트 - 프로필
   ----------------------------------------
   [사용법]
   - 일반 사용자: <div class="profile-image basic"></div>
   - 관리자(마을e척척): <div class="profile-image master"></div>
   
   ※ img 태그 필요없음! class만 변경하면 이미지 자동 적용
*/
.profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.profile-image {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  border: 3px solid var(--color-bg-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-size: cover;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
}

/* 
  기본 프로필 (일반 사용자)
  class="profile-image basic"
*/
.profile-image.basic {
  background-image: url('/townE/resources/images/layout/ic_profile.svg');
}

/* 
  관리자 프로필 (마을e척척)
  class="profile-image master"
*/
.profile-image.master {
  background-image: url('/townE/resources/images/layout/ic_Elogo.svg');
  background-size: cover;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.profile-name {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
}

.profile-name::after {
  content: "·";
  margin-left: var(--spacing-sm);
  color: var(--color-text-gray);
}

.profile-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
}

/*
   공통 컴포넌트 - 좋아요/댓글
*/
.engagement {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.engagement-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
}

.engagement-item img {
  width: 16px;
  height: 16px;
}


/*
   공통 컴포넌트 - 카드
*/
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* 카드 - 글씨형 */
.card-text {
  padding: 1.25rem;
}

.card-text .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* 카드 - 갤러리형 (오른쪽에 썸네일 + 좋아요/댓글) */
.card-gallery {
  position: relative;
  padding: 1.25rem;
  padding-right: 180px; /* 썸네일 공간 확보 */
}

.card-gallery .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.card-gallery .card-thumbnail {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 140px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
}

.card-gallery .card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 갤러리형 카드의 좋아요/댓글 - 썸네일 아래 */
.card-gallery .engagement {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
}

/* 갤러리형 카드의 footer - 프로필만 */
.card-gallery .card-footer {
  justify-content: flex-start;
}

/*
   투표 카드 (4열 그리드)
   - 마을총회 투표 리스트용
   - 한 줄에 4개씩 배치
*/
.card-grid-vote {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
}

/* 투표 카드 */
.card-vote {
  background-color: var(--color-bg-white);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

.card-vote:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 투표 카드 헤더 (상태) */
.card-vote .card-header {
  display: flex;
  justify-content: flex-end;
}

/* 투표 카드 바디 */
.card-vote .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex: 1;
}

/* 투표 카드 제목 - 2줄 */
.card-vote .card-title {
  -webkit-line-clamp: 2;
  min-height: calc(var(--font-size-base) * 1 * 2);
}

/* 투표 카드 내용 - 3줄 */
.card-vote .card-content {
  -webkit-line-clamp: 3;
  min-height: calc(var(--font-size-sm) * 1.5 * 2);
}

/* 투표 카드 푸터 */
.card-vote .card-footer {
  display: flex;
  gap: var(--spacing-xs);
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-border-light);
}

.card-vote .card-footer-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--spacing-sm);
}

.card-vote .card-footer-row .engagement {
  margin-left: auto;
}

/* 카드 메타 (마을명, 상태, 카테고리) */
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.card-village {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
}

/*
  상태 배지
  - pending (대기): 파란색
  - progress (진행): 주황색
  - paused (정지): 빨간색
  - complete (종료): 회색
  - record (기록) : 보라색
*/
.card-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: 4px;
}

/* 대기 - 파란색 */
.card-status.pending {
  background-color: var(--color-primary-blue);
  color: var(--color-text-white);
}

/* 진행 - 주황색 */
.card-status.progress {
  background-color: var(--color-primary-orange);
  color: var(--color-text-white);
}

/* 정지 - 빨간색 */
.card-status.paused {
  background-color: #E53935;
  color: var(--color-text-white);
}

/* 종료 - 회색 */
.card-status.complete {
  background-color: var(--color-text-gray);
  color: var(--color-text-white);
}

/* 기록 - 보라색 */
.card-status.record {
  background-color: var(--color-primary-purple);
  color: var(--color-text-white);
}

.card-category {
  font-size: var(--font-size-xs);
  color: var(--color-primary-purple);
  font-weight: 500;
}
/* 카테고리 아이콘 (클래스로 표시) */
.card-category-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* 마을알림 아이콘 */
.card-category-icon.icon-notice {
  content: url('/townE/resources/images/layout/ic_notice.svg');
}

/* 마을소통 아이콘 */
.card-category-icon.icon-communication {
  content: url('/townE/resources/images/layout/ic_communication.svg');
}

/* 마을질문 아이콘 */
.card-category-icon.icon-question {
  content: url('/townE/resources/images/layout/ic_question.svg');
}

/* 카테고리별 색상 */
.card-category.cat-notice {
  color: #FF6B35;
}

.card-category.cat-communication {
  color: #6B5CE7;
}

.card-category.cat-question {
  color: #28A745;
}

/* 카드 제목 */
.card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-black);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 카드 내용 (2줄 높이 고정) */
.card-content {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  line-height: 1.5;
  min-height: calc(var(--font-size-sm) * 1.5 * 2); /* 2줄 높이 고정 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 카드 기간 */
.card-period {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
  margin-right: auto;
  flex-shrink: 0;
}

/* 카드 하단 */
.card-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: auto;
  padding-top: var(--spacing-sm);
}

.card-date {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
}
/* 투표 통계 스타일 */
.stats-modal-content {
  padding: 1.5rem;
}

.stats-section {
  margin-bottom: 2rem;
}

.stats-section:last-child {
  margin-bottom: 0;
}

.stats-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-left: 10px;
  border-left: 4px solid var(--color-primary-purple);
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats-item-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--color-text-black);
}

.stats-bar-bg {
  height: 12px;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.stats-bar-fill {
  height: 100%;
  background-color: var(--color-primary-purple);
  border-radius: 6px;
  transition: width 0.5s ease-out;
}

.stats-bar-fill.gender-male { background-color: #4A90E2; }
.stats-bar-fill.gender-female { background-color: #F5A623; }

.btn-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-stats:hover {
  background-color: #eee;
  border-color: #ccc;
  color: #333;
}

/* 통계 토글 아이콘 버튼 */
.stats-toggle-btns {
  display: flex;
  background-color: #f0f0f0;
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
}

.btn-stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: all 0.2s;
  background-color: transparent;
}

.btn-stats-icon img {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.btn-stats-icon.active {
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-stats-icon.active img {
  opacity: 1;
}
/* 투표 박스 중지 오버레이 */
.vote-section.stop,
.vote-section.wait {
  position: relative;
}

.vote-section.stop::before,
.vote-section.wait::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10;
  border-radius: 12px;
}

.vote-section.stop::after {
  content: "정지된 투표입니다";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 11;
  padding: 10px 20px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  white-space: nowrap;
}
.vote-section.wait::after {
  content: "대기중인 투표입니다";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 11;
  padding: 10px 20px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  white-space: nowrap;
}


/*
   리스트 페이지 레이아웃
*/
.list-page {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* 필터 영역 (1뎁스 + 2뎁스 탭) */
.list-filter-area {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}

/* 내 마을 선택 드롭다운 */
.my-village-select-wrapper {
  position: relative;
}

.my-village-select-wrapper .search-select {
  min-width: 250px;
}

.my-village-select-wrapper .form-select {
  min-width: 250px;
  width: auto;
}

.my-village-select-wrapper .custom-select {
  width: auto;
  min-width: 160px;
}

.my-village-select-wrapper .custom-select-trigger {
  width: auto;
  min-width: 160px;
}
/* 1뎁스 탭 (Primary) */
.tabs-primary {
  gap: 0;
  background: var(--color-bg-light);
  border-radius: 8px;
  padding: 4px;
}

.tabs-primary .tab-item {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-gray);
  font-weight: 500;
  transition: all 0.2s ease;
}

.tabs-primary .tab-item.active {
  background: #fff;
  color: var(--color-primary-purple);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tabs-primary .tab-item:hover:not(.active) {
  color: var(--color-text-black);
}

/* 2뎁스 탭 (Secondary) */
.tabs-secondary {
  gap: var(--spacing-xs);
}

.tabs-secondary .tab-item {
  padding: var(--spacing-xs) var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  background: #fff;
  color: var(--color-text-gray);
  font-size: var(--font-size-sm);
  transition: all 0.2s ease;
}

.tabs-secondary .tab-item.active {
  background: var(--color-primary-purple);
  border-color: var(--color-primary-purple);
  color: #fff;
}

.tabs-secondary .tab-item:hover:not(.active) {
  border-color: var(--color-primary-purple);
  color: var(--color-primary-purple);
}

/* 툴바 영역 (총 건수 + 정렬 + 검색) */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.list-toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.list-toolbar-right {
  display: flex;
  align-items: center;
}

/* 컴팩트 검색박스 */
.search-box-compact {
  max-width: 400px;
}

.search-box-compact .search-input {
  font-size: var(--font-size-sm);
}

/* 리스트 헤더 (탭 + 검색) - 기존 호환용 */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.list-header-left {
  display: flex;
  align-items: center;
}

.list-header-right {
  display: flex;
  align-items: center;
}

/* 리스트 정보 (총 개수 + 정렬) */
.list-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.list-total {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
}

.list-total strong {
  color: var(--color-primary-purple);
  font-weight: 600;
}

/* 리스트 없음 (빈 상태) */
.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px var(--spacing-md);
  text-align: center;
  background: var(--color-bg-light);
  border-radius: 12px;
}

.list-empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.list-empty-icon img {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.list-empty-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-black);
  margin-bottom: var(--spacing-xs);
}

.list-empty-subtext {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
}

.list-empty.hide {
  display: none;
}

/* 카드 리스트 */
.card-list {
  display: grid;
  gap: var(--spacing-md);
}

/* 글씨형 리스트 - 2열 */
.card-list-text {
  grid-template-columns: repeat(2, 1fr);
}

/* 갤러리형 리스트 - 2열 */
.card-list-gallery {
  grid-template-columns: repeat(2, 1fr);
}


/*
   상세 페이지 (Detail Page)
*/
.detail-page {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* 상세 헤더 */
.detail-header {
  border-top: 2px solid var(--color-text-black);
  border-bottom: 1px solid var(--color-border-light);
  padding-top: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}

.detail-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-black);
  margin-bottom: var(--spacing-sm);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  font-size: var(--font-size-sm);
}

.detail-meta-item {
  display: flex;
  gap: var(--spacing-xs);
}

.detail-meta-label {
  color: var(--color-text-gray);
}

.detail-meta-value {
  color: var(--color-text-black);
}

/* 상세 본문 */
.detail-content {
  line-height: 1.8;
  color: var(--color-text-black);
  font-size: var(--font-size-base);
}


.detail-image {
  margin: var(--spacing-lg) auto;
  text-align: center;
}

.detail-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.detail-image-slider {
  position: relative;
  margin: var(--spacing-lg) auto;
  max-width: 900px;
}

.detail-image-slider .detail-image {
  margin: 0;
  text-align: center;
}

.detail-image-slider .detail-image img {
  display: block;
  margin: 0 auto;
}

.detail-image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.detail-image-nav img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.detail-image-nav.prev {
  left: 12px;
}

.detail-image-nav.next {
  right: 12px;
}

.detail-image-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.detail-image-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.detail-image-dot.active {
  background: #fff;
}

.detail-attachments {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  background: #f8f9fb;
}

.detail-attachments-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-black);
}

.detail-attachments-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.detail-attachments-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.detail-attachments-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.detail-attachments-link {
  font-size: var(--font-size-sm);
  color: var(--color-primary-purple);
  text-decoration: underline;
}

/* 공유하기 버튼 - 다양한 페이지에서 재사용 가능 */
.btn-share {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.btn-share:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.btn-share img {
  width: 16px;
  height: 16px;
}

/* 액션 박스 (좋아요/공유하기 세트) - 다양한 페이지에서 재사용 가능 */
.action-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border: 1px solid var(--color-border-light);
  border-radius: 50px;
  width: fit-content;
}

.action-box-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
  transition: color 0.2s ease;
}

.action-box-btn:hover {
  color: var(--color-primary-green);
}

/* 좋아요 활성화 상태 */
.action-box-btn.active {
  color: var(--color-primary-orange);
}

.action-box-btn img {
  width: 18px;
  height: 18px;
}

.action-box-divider {
  color: var(--color-border-gray);
}

/* 상세 페이지에서 사용 시 가운데 정렬 */
.detail-actions {
  margin: 0 auto;
}

/* 투표 상세 헤더 - 상태 + 제목 */
.detail-header-top {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.detail-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
}

.detail-header-top .detail-title {
  margin-bottom: 0;
}

/* 더보기 메뉴 */
.detail-more-menu {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.detail-more-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.detail-more-btn:hover {
  background-color: var(--color-bg-light);
}

.detail-more-btn img {
  width: 24px;
  height: 24px;
}

.detail-more-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: var(--spacing-xs);
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 90px;
  z-index: 100;
  overflow: hidden;
}

.detail-more-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.detail-more-item:hover {
  background-color: var(--color-bg-light);
}

.detail-more-item img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.detail-more-item:hover img {
  opacity: 1;
}

/* 시작 버튼 회색 처리 */
.detail-more-item-start img {
  filter: grayscale(100%) brightness(0.5);
  opacity: 0.7;
}

.detail-more-item-start:hover img {
  filter: grayscale(100%) brightness(0.7);
  opacity: 1;
}

/* 투표 영역 */
.vote-section {
  width: 100%;
  max-width: 650px;
  margin: auto;
  background-color: #F4F5F9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 투표 그룹 - 여러 투표를 구분 */
.vote-group {
  border-bottom: 1px solid var(--color-border-light);
}

.vote-group:last-child {
  border-bottom: none;
}

.vote-group:first-child .vote-header {
  border-radius: 12px 12px 0 0;
  align-items: center;
}

.vote-group:not(:first-child) .vote-header {
  border-radius: 0;
}

.vote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-smd) var(--spacing-md);
  background-color: var(--color-primary-purple);
  color: var(--color-text-white);
}

.vote-header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.vote-icon {
  width: 24px;
  height: 24px;
}

.vote-header-title {
  font-size: var(--font-size-base);
  font-weight: 500;
}

.vote-header-deadline {
  font-size: var(--font-size-sm);
}

.vote-list {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  background-color: #fff;
}

/* 투표 항목 래퍼 */
.vote-item-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* 투표 항목 - 전체가 클릭 가능 */
.vote-item {
  position: relative;
  background-color: #F4F5F9;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 10px;
  overflow: hidden;
}

/* 게이지 바 */
.vote-gauge {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: rgba(219, 219, 219, 0.5);
  border-radius: 10px 30px 30px 10px;
  transition: width 0.3s ease;
  z-index: 0;
}

.vote-item.top-rank .vote-gauge {
  background-color: #DFE1FF;
}


.vote-item.top-rank .vote-item-title,
.vote-item.top-rank .vote-item-result {
  color: var(--color-primary-purple);
  font-weight: 700;
}

.vote-checkbox {
  display: none;
}

.vote-item-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-smd) var(--spacing-md);
  z-index: 1;
}

.vote-item-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
}

/* 체크 아이콘 (선택 시 표시) */
.vote-check-icon {
  width: 20px;
  height: 20px;
  display: none;
}

.vote-item.selected .vote-check-icon {
  display: block;
}

.vote-item-title {
  font-size: var(--font-size-base);
  color: var(--color-text-black);
}

.vote-search-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  cursor: pointer;
  padding: var(--spacing-xs);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.6;
  margin-left: var(--spacing-sm);
}

.vote-search-btn:hover {
  background: var(--color-primary-purple);
  border-color: var(--color-primary-purple);
  opacity: 1;
  transform: scale(1.1);
}

.vote-search-btn:hover img {
  filter: brightness(0) invert(1);
}

.vote-search-btn img {
  width: 16px;
  height: 16px;
}

.vote-item-result {
  font-size: var(--font-size-sm);
  color: var(--color-primary-purple);
  font-weight: 500;
  flex-shrink: 0;
}

.vote-item-count {
  font-size: var(--font-size-xs);
  color: var(--color-text-gray);
  padding-left: var(--spacing-md);
}

/* 이미지+텍스트형 투표 */
.vote-list-image {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: #fff;
}

.vote-item-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #F4F5F9;
  border: 2px solid transparent;
}

.vote-item-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vote-item-image.selected {
  border-color: var(--color-primary-purple);
}

.vote-item-image .vote-checkbox {
  display: none;
}

.vote-item-image-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: #ddd;
}

.vote-item-image-body {
  padding: var(--spacing-sm);
}

.vote-item-image-title {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-black);
  margin-bottom: var(--spacing-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vote-item-image-result {
  font-size: var(--font-size-xs);
  color: var(--color-primary-purple);
  font-weight: 500;
}

.vote-item-image .vote-check-icon {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 24px;
  height: 24px;
  display: none;
}

.vote-item-image.selected .vote-check-icon {
  display: block;
}

.vote-item-image.top-rank {
  background-color: #DFE1FF;
}

.vote-item-image.top-rank .vote-item-image-title,
.vote-item-image.top-rank .vote-item-image-result {
  color: var(--color-primary-purple);
  font-weight: 700;
}
.vote-item-image .vote-search-btn {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.vote-item-image .vote-search-btn:hover {
  background: var(--color-primary-purple);
  border-color: var(--color-primary-purple);
  opacity: 1;
  transform: scale(1.1);
}

.vote-item-image .vote-search-btn:hover img {
  filter: brightness(0) invert(1);
}

.vote-item-image .vote-search-btn img {
  width: 16px;
  height: 16px;
}

/* 투표 상태 정보 */
.vote-status-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-smd) var(--spacing-md);
  background-color: #fff;
  border-bottom: 1px solid var(--color-border-light);
}

.vote-status-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  font-weight: 500;
}

.vote-participants {
  font-size: var(--font-size-sm);
  color: var(--color-primary-purple);
  font-weight: 500;
}

/* 별점형 투표 */
.vote-list-rating {
  padding: var(--spacing-md);
  background-color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.vote-item-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: #F4F5F9;
  border-radius: 12px;
}
.vote-item-rating-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
}

.vote-item-rating-title {
  flex: 1;
  font-size: var(--font-size-base);
  color: var(--color-text-black);
}
.vote-item-rating .vote-search-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  cursor: pointer;
  padding: var(--spacing-xs);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.vote-item-rating .vote-search-btn:hover {
  background: var(--color-primary-purple);
  border-color: var(--color-primary-purple);
  opacity: 1;
  transform: scale(1.1);
}

.vote-item-rating .vote-search-btn:hover img {
  filter: brightness(0) invert(1);
}

.vote-item-rating .vote-search-btn img {
  width: 16px;
  height: 16px;
}
.vote-item-rating-stars {
  display: flex;
  gap: var(--spacing-xs);
}

.vote-star {
  width: 28px;
  height: 28px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.vote-star:hover {
  transform: scale(1.2);
}

.vote-star.active {
  filter: none;
}

.vote-star:not(.active) {
  filter: grayscale(100%) opacity(0.4);
}

.vote-item-rating-score {
  min-width: 60px;
  text-align: right;
  font-size: var(--font-size-sm);
  color: var(--color-primary-purple);
  font-weight: 500;
}
/* 투표완료하기 버튼 */
.vote-complete-section {
  width: 100%;
  max-width: 650px;
  margin: var(--spacing-lg) auto;
  padding: 0 var(--spacing-md);
}

.vote-complete-btn {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--color-primary-purple);
  color: var(--color-text-white);
  border: none;
  border-radius: 12px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 69, 193, 0.3);
}

.vote-complete-btn:hover {
  background-color: var(--color-primary-purple-dark, #6B46C1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 69, 193, 0.4);
}

.vote-complete-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(139, 69, 193, 0.3);
}

/*
   댓글 영역 (Comment Section)
*/
.comment-section {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--spacing-lg);
}

.comment-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-black);
  margin-bottom: var(--spacing-md);
}

.comment-count {
  color: var(--color-primary-purple);
}

/* 댓글 입력 폼 */
.comment-form {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.comment-input {
  flex: 1;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  font-size: var(--font-size-sm);
  resize: none;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: var(--color-primary-purple);
}

.comment-input::placeholder {
  color: var(--color-text-gray);
}

.comment-submit-btn {
  padding: var(--spacing-md) var(--spacing-xl);
  background-color: var(--color-text-gray);
  color: var(--color-text-white);
  border: none;
  border-radius: 8px;
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: not-allowed;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  opacity: 0.6;
}

/* 활성화된 등록 버튼 */
.comment-submit-btn.active {
  background-color: var(--color-primary-purple);
  cursor: pointer;
  opacity: 1;
}

.comment-submit-btn.active:hover {
  background-color: #5258c9;
}

/* 댓글 목록 */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.comment-item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.comment-profile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.comment-body {
  flex: 1;
}

.comment-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

.comment-actions {
  margin-left: auto;
  display: flex;
  gap: var(--spacing-xs);
}

.comment-action-btn {
  background: none;
  border: none;
  font-size: var(--font-size-xs);
  color: var(--color-text-gray);
  cursor: pointer;
}

.comment-action-btn.delete {
  color: #e74c3c;
}

.comment-author {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-black);
}

.comment-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-gray);
}

.comment-edited {
  font-size: var(--font-size-xs);
  color: var(--color-text-gray);
  margin-left: 4px;
  font-style: italic;
}
.comment-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  line-height: 1.6;
}

.comment-edit {
  display: none;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.comment-item.editing .comment-text {
  display: none;
}

.comment-item.editing .comment-edit {
  display: flex;
}

.comment-edit-input {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border-light);
  border-radius: 6px;
  font-size: var(--font-size-sm);
  resize: none;
  font-family: inherit;
}

.comment-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-xs);
}

/* 댓글 더보기/접기 버튼 */
.comment-more-btn {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  margin-top: var(--spacing-sm);
  background: none;
  border: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-more-btn:hover {
  color: var(--color-primary-purple);
}

/* 팝업 레이아웃 페이지 */
.popup-layout-page {
  padding: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.popup-layout-page .page-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.popup-layout-page .page-desc {
  color: var(--color-text-gray);
  margin-bottom: var(--spacing-xl);
}

.popup-section {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid var(--color-border-light);
}

.popup-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--color-primary-purple);
}

/* 팝업 */
.popup-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
}
.popup-wrap .basic .popup-header {
  border-bottom: none;
}
.popup-wrap .basic .popup-footer {
  border-top: none;
}
.popup-wrap .basic .popup-body {
  text-align: center;
  padding: 0 20px;
}
.nickname {
  font-weight: 600;
  color: var(--color-primary-purple);
}
.refuse {
  font-weight: 600;
  color: var(--color-primary-orange);
}
.approval {
  font-weight: 600;
  color: var(--color-primary-blue);
}
.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.popup-container {
  position: relative;
  animation: popupFadeIn 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  box-sizing: border-box;
}
    
.popup-content-lg {
  max-width: 700px;
  min-width: 700px;
}
.popup-content-sm {
  max-width: 300px;
  min-width: 300px;
}

/* 공유 팝업 */
.popup-share {
  max-width: 360px;
}

.share-options {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.share-option:hover {
  transform: scale(1.05);
}

.share-option:active {
  transform: scale(0.95);
}

.share-option-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-option-icon img {
  width: 28px;
  height: 28px;
}

.share-kakao {
  background: #FEE500;
}

.share-kakao img {
  filter: none;
}

.share-url {
  background: #f0f0f0;
}

.share-option-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.share-url-field {
  display: flex;
  gap: var(--spacing-xs);
  padding: 0 var(--spacing-md) var(--spacing-md);
}

.share-url-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: #f9f9f9;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-url-input:focus {
  outline: none;
  border-color: var(--color-primary-orange);
}

.share-url-copy {
  padding: 10px 16px;
  background: var(--color-primary-orange);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.share-url-copy:hover {
  background: var(--color-primary-orange-dark);
}

.share-url-copy.copied {
  background: #28a745;
}

/* 팝업 헤더 */
.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-smd) var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
}
.popup-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.popup-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: 50%;
  transition: background 0.2s;
}

.popup-close-btn:hover {
  background: var(--color-bg-gray);
}

.popup-close-btn img {
  width: 24px;
  height: 24px;
}

/* 팝업 바디 */
.popup-body {
  padding: var(--spacing-md);
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* 팝업 내부 select 드롭다운이 팝업 경계 내에 머물도록 조정 */
.popup-body .custom-select {
  position: relative;
  z-index: 1;
}

.popup-body .custom-select-dropdown {
  z-index: 1001; /* 팝업 위에 표시 */
  /* 팝업 내부에서 드롭다운이 화면 밖으로 나가지 않도록 max-height 조정 */
  max-height: 120px; /* 더 엄격한 높이 제한 */
}

/* 팝업 컨테이너 내부에서도 드롭다운이 잘리지 않도록 */
.popup-container .custom-select {
  position: relative;
}

.popup-container .custom-select-dropdown {
  z-index: 1001;
  /* 팝업 내부 공간을 고려한 max-height - 더 엄격하게 제한 */
  max-height: 200px;
}

/* 팝업 내부에서 드롭다운이 팝업 경계를 넘지 않도록 */
.popup-wrap .custom-select-dropdown,
.popup-container .custom-select-dropdown,
.popup-body .custom-select-dropdown {
  max-height: 200px !important;
}


/* 팝업 푸터 */
.popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg-gray);
}


.form-label {
  display: block;
  font-size: var(--font-size-sm);
  text-align: start;
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-black);
}

.form-label .required {
  color: #e74c3c;
}

/* 텍스트 입력 */
.form-input {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  font-size: var(--font-size-base);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-purple);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-input.error {
  border-color: #e74c3c;
}

.form-input.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-gray);
}

/* 텍스트영역 */
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  font-size: var(--font-size-base);
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-purple);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-textarea.error {
  border-color: #e74c3c;
}

.form-textarea.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-textarea::placeholder {
  color: var(--color-text-gray);
}

/* 셀렉트 */
.form-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  font-size: var(--font-size-base);
  background: #fff url('/townE/resources/images/layout/ic_select_gray.svg') no-repeat right var(--spacing-sm) center;
  background-size: 20px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-select:focus {
  outline: none;
  border-color: var(--color-primary-purple);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-select.error {
  border-color: #e74c3c;
}

.form-select.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* 숨김 처리된 원본 select */
.form-select.select-hidden {
  display: none !important;
}

/* 팝업 등장 애니메이션 */
@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 투표 관리 테이블 스타일 */
.vote-manage-table-wrap {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  overflow-x: auto; /* 모달 내 가로 스크롤 허용 */
  -webkit-overflow-scrolling: touch;
}

.vote-manage-table {
  width: 100%;
  min-width: 500px; /* 모바일에서 최소 너비 확보하여 스크롤 유도 */
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.vote-manage-table th {
  background-color: #f8f9fa;
  color: #333333;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 2px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  text-align: center;
}

.vote-manage-table th:last-child {
  border-right: none;
}

.vote-manage-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #eeeeee;
  border-right: 1px solid #eeeeee;
  color: #444444;
  text-align: center;
  background-color: #ffffff;
  vertical-align: middle;
  word-break: break-all; /* 긴 텍스트 줄바꿈 */
}

.vote-manage-table td:last-child {
  border-right: none;
}

.vote-manage-table tr:last-child td {
  border-bottom: none;
}

.vote-manage-table tr:hover td {
  background-color: #f9f9f9;
}

/* 컬럼별 너비 지정 */
.vote-manage-table th:nth-child(1),
.vote-manage-table td:nth-child(1) {
  width: 110px; /* 투표유형 */
}

.vote-manage-table th:nth-child(3),
.vote-manage-table td:nth-child(3) {
  width: 90px; /* 선택수 */
}

.vote-manage-table th:nth-child(4),
.vote-manage-table td:nth-child(4) {
  width: 80px; /* 관리 */
}

/* 투표명(2번째 컬럼)은 남은 너비를 차지합니다. */

.vote-manage-table td.empty-cell {
  padding: 20px;
  color: #999999;
}

.vote-manage-table td.text-left {
  text-align: left;
  padding-left: 10px;
}
/* 추가 버튼 (테이블 아래) */
.btn-add-item {
  width: 100%;
  justify-content: center;
  height: 44px;
  border-style: dashed;
}

/* 서브 모달 (중첩 모달) 스타일 */
.sub-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
}

.sub-content {
  width: 560px;
  max-width: 560px;
  max-height: 600px;
  border-radius: 10px;
  background-color: var(--color-bg-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  animation: subPopupSlideIn 0.3s ease-out;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.calculator-popup {
  max-width: 300px;
  width: 100%;
}

/* 서브모달 내부 요소 border-radius */
.sub-content .popup-header {
  border-radius: 10px 10px 0 0;
}

.sub-content .popup-body {
  overflow-y: auto;
  overflow-x: hidden;
}

.sub-content .popup-footer {
  border-radius: 0 0 10px 10px;
}

/* 팝업 내부 데이터 테이블 가로 스크롤 보장 */
.popup-body .data-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.popup-body .data-table {
  min-width: 600px;
}

@keyframes subPopupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 폼 요소 보완 */
.form-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.form-separator {
  color: var(--color-gray-400);
}

.btn-add {
  margin-top: var(--spacing-sm);
}

/* 투표 항목 이미지 업로드 스타일 */

.vote-item-image-upload .btn-outline {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-color: #e0e0e0;
}

.vote-item-image-upload .btn-outline.has-image {
  border-color: var(--color-primary-orange);
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 투표 항목 의제 관련 스타일 */
.vote-item-wrapper {
  margin-bottom: var(--spacing-sm);
}

.vote-item-images {
  margin-top: var(--spacing-sm);
  padding-left: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.image-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-image-remove:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.btn-image-remove img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

.vote-item-agendas {
  margin-top: var(--spacing-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agenda-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background-color: #f0f0f0;
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.agenda-tag span {
  flex: 1;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-agenda-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.btn-agenda-remove:hover {
  opacity: 1;
}

.btn-agenda-remove img {
  width: 12px;
  height: 12px;
}

/* 의제 리스트 팝업 테이블 */
#agendaListModal .data-table td.text-left,
.popup-modal.sub-modal .data-table td.text-left {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 커스텀 셀렉트 */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  font-size: var(--font-size-base);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: var(--color-primary-purple);
}

.custom-select-trigger:focus {
  outline: none;
  border-color: var(--color-primary-purple);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.custom-select-trigger.error {
  border-color: #e74c3c;
}

.custom-select-trigger.error:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.custom-select-trigger span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-icon {
  width: 20px;
  height: 20px;
  margin-left: var(--spacing-sm);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.custom-select-icon.rotate {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.custom-select-list {
  list-style: none;
  padding: var(--spacing-xs) 0;
  margin: 0;
}

.custom-select-item {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  background: none;
  border: none;
  font-size: var(--font-size-base);
  color: var(--color-text-black);
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-select-item:hover {
  background-color: var(--color-bg-light);
}

.custom-select-item.active {
  color: var(--color-primary-purple);
  font-weight: 600;
  background-color: rgba(108, 92, 231, 0.1);
}

/* 검색 셀렉트 드롭다운 스타일 보완 */
.search-select {
  position: relative;
}

.search-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.search-select-list {
  list-style: none;
  padding: var(--spacing-xs) 0;
  margin: 0;
}

.search-select-item {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  text-align: left;
  background: none;
  border: none;
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-select-item:hover {
  background-color: var(--color-bg-light);
}

.search-select-item.active {
  color: var(--color-primary-purple);
  font-weight: 600;
}

.search-select-icon {
  transition: transform 0.2s;
}

.search-select-icon.rotate {
  transform: rotate(180deg);
}

/* 에러 메시지 */
.form-error {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: #e74c3c;
}

.form-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.form-success {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: #28a745;
}

.form-success::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

/* 에러 상태의 라벨 */
.form-group.error .form-label {
  color: #e74c3c;
}

/* 폼 행 (날짜 범위 등) */
.form-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.form-separator {
  color: var(--color-text-gray);
}
/* 데이터 테이블 공통 스타일 */
.data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 600px;
}

.data-table th,
.data-table td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  vertical-align: middle;
}

.data-table th {
  background: #f8f9fa;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.data-table td {
  color: var(--text-primary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table .badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.data-table .badge-admin {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.data-table .badge-sub-admin {
  background: rgba(76, 160, 255, 0.1);
  color: #4ca0ff;
}

.data-table .badge-activist {
  background: rgba(81, 215, 47, 0.1);
  color: #2e7d32;
}

/* "나" 표시 배지 */
.badge-me {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  background: #414141;
  color: #fff;
  border-radius: 50px;
  margin-left: 0.4rem;
  vertical-align: middle;
  font-weight: 500;
  line-height: 1.2;
}

.data-table .btn-table-action {
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  border: 1px solid var(--border-light);
}

.data-table .btn-table-action:hover {
  background: #f5f5f5;
}

.data-table .btn-kick {
  color: #e74c3c;
  border-color: #ffdada;
}

.data-table .btn-kick:hover {
  background: #fff5f5;
  border-color: #ff6b6b;
}

.data-table .btn-setting {
  color: var(--color-primary-purple);
  border-color: #e0d4ff;
}

.data-table .btn-setting:hover {
  background: #f8f5ff;
  border-color: var(--color-primary-purple);
}

.data-table .table-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* 권한 변경 모달 스타일 */
.authority-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.radio-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
}

.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary-purple);
  cursor: pointer;
}

.radio-text {
  font-size: var(--font-size-base);
  color: var(--color-text-black);
}

.popup-content-sm {
  width: 100%;
  max-width: 400px;
}

.btn-confirm {
  width: 100%;
  padding: var(--spacing-md);
  background-color: var(--color-primary-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-confirm:hover {
  background-color: #5d3eb3;
}



/* 라디오 버튼 */
.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.form-radio input {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border-light);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.2s;
}

.form-radio input:checked + .radio-custom {
  border-color: var(--color-primary-purple);
}

.form-radio input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--color-primary-purple);
  border-radius: 50%;
}

/* 체크박스 */
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.form-checkbox input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border-light);
  border-radius: 4px;
  position: relative;
  transition: all 0.2s;
}

.form-checkbox input:checked + .checkbox-custom {
  background: var(--color-primary-purple);
  border-color: var(--color-primary-purple);
}

.form-checkbox input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 파일 업로드 */
.file-upload-area {
  border: 2px dashed var(--color-border-light);
  border-radius: 12px;
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.2s;
}

.file-upload-area:hover {
  border-color: var(--color-primary-purple);
  background: rgba(108, 92, 231, 0.02);
}

/* 파일 업로드 가로 배치 */
.file-upload-row {
  display: flex;
  gap: var(--spacing-md);
}

.file-upload-row .form-group {
  flex: 1;
  min-width: 0;
}

.file-upload-compact {
  padding: var(--spacing-md);
}

.file-input {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

.upload-icon {
  width: 40px;
  height: 40px;
  opacity: 0.5;
}

.file-upload-compact .upload-icon {
  width: 32px;
  height: 32px;
}

.file-upload-label span {
  color: var(--color-text-gray);
  font-size: var(--font-size-sm);
}

.upload-hint {
  font-size: var(--font-size-xs) !important;
  color: var(--color-text-light-gray) !important;
}

.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

/* 투표 항목 관리 */
.vote-items-manager {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.vote-item-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.vote-item-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
}

.vote-item-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex-shrink: 0;
}

.vote-item-num {
  width: 28px;
  height: 28px;
  background: var(--color-primary-purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 600;
  flex-shrink: 0;
}

.vote-item-row .form-input {
  flex: 1;
}

.vote-item-image-upload {
  flex-shrink: 0;
}

.vote-item-image-upload .btn {
  padding: var(--spacing-xs);
}

.vote-item-image-upload img {
  width: 20px;
  height: 20px;
}

/* 최대 선택 수 */
.max-select-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.max-select-input {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding-left: calc(20px + var(--spacing-xs));
}

.max-select-input .form-select {
  width: auto;
  min-width: 100px;
}

.max-select-hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 8px;
  font-size: var(--font-size-base);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-sm);
}


.btn-primary {
  background: var(--color-primary-purple);
  color: #fff;
}

.btn-primary:hover {
  background: #5a4fcf;
}

/* 등록 버튼 (주황색 + 아이콘) */
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding-left: 2.5rem;
  padding-right: 1rem;
  background: var(--color-primary-orange);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: var(--font-size-base);
  background-image: url('/townE/resources/images/layout/ic_pen_white.svg');
  background-position: 15% center;
  background-repeat: no-repeat;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 103, 51, 0.4);
}

.btn-register img {
  width: 18px;
  height: 18px;
}

.list-actions {
  margin-left: auto;
}



/* 등록 버튼 - 탭/헤더용 (작은 사이즈) */
.btn-register-sm {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-primary-orange);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-register-sm:hover {
  background: #e85a2a;
}

.btn-register-sm img {
  width: 16px;
  height: 16px;
}

/* 등록 버튼 - 고정 위치 (오른쪽 하단) */
.btn-register-fixed {
  position: fixed;
  right: 30px;
  bottom: 100px;
  z-index: 100;
  padding: var(--spacing-smd) var(--spacing-lg);
  box-shadow: 0 4px 20px rgba(255, 103, 51, 0.4);
}

.btn-register-fixed:hover {
  box-shadow: 0 6px 24px rgba(255, 103, 51, 0.5);
}

/* 등록 버튼 - 원형 (아이콘만) */
.btn-register-circle {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
}

.btn-register-circle img {
  width: 24px;
  height: 24px;
}

.btn-secondary {
  background: var(--color-bg-gray);
  color: var(--color-text-black);
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--color-border-light);
  color: var(--color-text-black);
}

.btn-outline:hover {
  border-color: var(--color-primary-purple);
  color: var(--color-primary-purple);
}

.btn-danger {
  background: #e74c3c;
  color: #fff;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-icon {
  padding: var(--spacing-xs);
}

.btn-icon img {
  width: 20px;
  height: 20px;
}

.btn-add {
  width: 100%;
  justify-content: center;
  padding: var(--spacing-sm);
  border-style: dashed;
  margin-top: 10px;
}

.btn-add img {
  width: 18px;
  height: 18px;
}

.btn-group {
  display: flex;
  gap: var(--spacing-sm);
}

/* 파일 미리보기 리스트 */
.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.file-preview-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: var(--spacing-xs) var(--spacing-sm);
  padding-right: 32px;
  width: calc(33.333% - var(--spacing-sm) * 2 / 3);
  min-width: 0;
  box-sizing: border-box;
}

.file-preview-item .preview-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.file-preview-item .preview-doc-icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.file-preview-item .preview-name {
  font-size: var(--font-size-xs);
  color: var(--color-text-gray);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-item .preview-remove-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-preview-item .preview-remove-btn:hover {
  background: var(--color-danger);
}

.file-preview-item .preview-remove-btn img {
  width: 12px;
  height: 12px;
  filter: brightness(0) invert(1);
}

/* 문서 미리보기 스타일 */
.file-preview-docs {
  display: flex;
  flex-direction: column;
}

.file-preview-doc {
  width: 100%;
  max-width: 300px;
}

/* 컴포넌트 그리드 */
.component-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.component-item {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: var(--spacing-md);
}

.component-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-gray);
  margin-bottom: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border-light);
}

/*
   정보 팝업 (Info Popup)
*/
.popup-content-info {
  max-width: 600px;
}

.popup-footer-single {
  justify-content: center;
}

.popup-footer-single .btn {
  min-width: 120px;
}

/* 정보 헤더 */
.info-header {
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--spacing-md);
}

.info-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-black);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.info-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
}

.info-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.info-author-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.info-divider {
  color: var(--color-border-light);
}

.info-date,
.info-views {
  color: var(--color-text-gray);
}

/* 정보 내용 */
.info-content {
  font-size: var(--font-size-base);
  color: var(--color-text-black);
  line-height: 1.8;
}

.info-content ul {
  margin: var(--spacing-sm) 0 var(--spacing-md) var(--spacing-lg);
  padding: 0;
}

.info-content ul li {
  margin-bottom: var(--spacing-xs);
  position: relative;
  padding-left: var(--spacing-sm);
}

.info-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary-purple);
}

/* 정보 이미지 */
.info-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.info-image-item {
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-light);
  aspect-ratio: 16 / 10;
}

.info-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ======================================
   로그인 및 회원가입 팝업 (AuthPopup)
   ======================================
*/

.auth-popup {
  padding: var(--spacing-lg);
  max-width: 440px ;
  min-width: 440px ;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.auth-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: #111;
  margin-top: var(--spacing-smd);
}

.auth-desc {
  font-size: 14px;
  color: #666;
}

.auth-popup .popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
}

/* SNS 로그인 버튼 리스트 */
.sns-login-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sns-btn {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.sns-btn:hover {
  opacity: 0.9;
}

.sns-icon {
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.sns-icon img {
  width: 100%;
  height: 100%;
}

.sns-text-icon {
  font-weight: 900;
  font-size: 18px;
}

/* 카카오톡 */
.sns-btn.kakao {
  background-color: #FEE500;
  color: #191919;
}

/* 네이버 */
.sns-btn.naver {
  background-color: #03C75A;
  color: #fff;
}

/* 애플 */
.sns-btn.apple {
  background-color: #000000;
  color: #fff;
}

/* 회원가입 폼 */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input-with-btn {
  display: flex;
  gap: 8px;
}

.btn-check-duplicate {
  flex-shrink: 0;
  padding: 0 15px;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
}

.btn-check-duplicate:hover {
  background-color: #e5e5e5;
}

.auth-footer {
  margin-top: 10px;
}

.btn-submit-register {
  width: 100%;
  height: 50px;
  background-color: #6369DD;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit-register:hover:not(:disabled) {
  background-color: #4f54c4;
}

.btn-submit-register:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/**
 * 오프라인 투표 합치기 팝업 스타일
 */

/* 합치기 팝업 스타일 */
.merge-info-box {
  background-color: #f8f9fb;
  border-radius: 8px;
  padding: var(--spacing-md);
}

.merge-info-box p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  line-height: 1.6;
}

.merge-info-box p:first-child {
  margin-bottom: var(--spacing-xs);
}

.merge-warning {
  color: #d32f2f !important;
  font-weight: 600;
}

.merge-vote-title {
  text-align: center;
}

.merge-vote-title h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-black);
  margin: 0;
}

.merge-date-range {
  text-align: center;
  font-size: var(--font-size-base);
  color: var(--color-text-black);
  font-weight: 500;
}

.merge-vote-group {
  margin-bottom: var(--spacing-md);
}

.merge-vote-group:last-child {
  margin-bottom: 0;
}

.merge-vote-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-black);
  padding: var(--spacing-sm) 0;
  border-bottom: 2px solid #e1e1e1;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.merge-vote-group-title:hover:not(:disabled) {
  color: var(--color-primary-purple);
}

.merge-vote-group-title:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.merge-vote-group-title span {
  flex: 1;
}

.merge-accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.merge-accordion-icon.expanded {
  transform: rotate(180deg);
}

.merge-vote-items {
  background-color: #f8f9fb;
  border-radius: 8px;
  padding: var(--spacing-md);
  margin-top: var(--spacing-sm);
  animation: slideDown 0.3s ease-out;
  overflow: hidden;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
  }
}

.merge-vote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid #e1e1e1;
}

.merge-vote-item:last-child {
  border-bottom: none;
}

.merge-vote-item-title {
  font-size: var(--font-size-sm);
  color: var(--color-text-black);
  flex: 1;
  margin-right: var(--spacing-md);
}

.merge-vote-counter {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.merge-counter-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #d1d1d1;
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.merge-counter-btn:hover:not(:disabled) {
  background-color: #f0f0f0;
  border-color: var(--color-primary-purple);
}

.merge-counter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.merge-counter-value {
  min-width: 40px;
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-black);
}

.merge-evidence-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-black);
  margin-bottom: var(--spacing-md);
}

.merge-evidence-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--spacing-xs);
}

.merge-evidence-scroll::-webkit-scrollbar {
  height: 6px;
}

.merge-evidence-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.merge-evidence-scroll::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.merge-evidence-scroll::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.merge-evidence-list {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.merge-evidence-item {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
}

.merge-evidence-upload {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.merge-evidence-upload input[type="file"] {
  display: none;
}

.merge-evidence-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  border: 2px dashed #d1d1d1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.merge-evidence-upload:hover .merge-evidence-placeholder {
  background-color: #e8e8e8;
  border-color: var(--color-primary-purple);
}

.merge-evidence-plus {
  font-size: 48px;
  font-weight: 300;
  color: #999;
  line-height: 1;
}

.merge-evidence-add {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border: 2px dashed #d1d1d1;
  border-radius: 8px;
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.merge-evidence-add:hover {
  background-color: #e8e8e8;
  border-color: var(--color-primary-purple);
}

.merge-evidence-add .merge-evidence-plus {
  font-size: 32px;
  color: #999;
}

.merge-evidence-add-text {
  font-size: var(--font-size-sm);
  color: #666;
  font-weight: 500;
}

.merge-evidence-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.merge-evidence-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.merge-evidence-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.merge-evidence-remove:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.merge-evidence-remove img {
  width: 14px;
  height: 14px;
  filter: brightness(0) invert(1);
}


/* 전체/내마을 마을선택 */
.my-village-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.action_box {
  display: flex;
  gap: var(--spacing-md);
  margin-left: auto;
}

/*
   ========================================
   반응형 스타일 (Media Queries)
   ========================================
*/

/* 1300px 이하*/
@media (max-width: 1300px) {
  .card-vote .card-footer {
    flex-direction: column;
  }
}


/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {
  /* 카드 리스트 */
  .card-list-text,
  .card-list-gallery {
    grid-template-columns: 1fr;
  }
  /* 투표 카드 그리드 */
  .card-grid-vote {
    grid-template-columns: repeat(2, 1fr);
  }
    .search-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .search-sidebar {
    display: none;
  }

  /* 검색창 위 일자 롤링 표시 */
  .search-popular-roll-mobile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 2rem;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    box-sizing: border-box;
  }
  .search-popular-roll-mobile-label {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
  }
  .search-popular-roll-mobile-date {
    flex-shrink: 0;
    font-size: 0.6875rem;
    color: #888;
    font-weight: 500;
  }
  .search-popular-roll-mobile-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }
  .search-popular-roll-mobile-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: search-popular-roll-mobile 22s linear infinite;
  }
  .search-popular-roll-mobile-track:hover {
    animation-play-state: paused;
  }
  .search-popular-roll-mobile-item {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
  }
  .search-popular-roll-mobile-item:hover {
    color: var(--color-primary-orange);
  }
  @keyframes search-popular-roll-mobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* 태블릿/모바일 (768px 이하) */
@media (max-width: 768px) {
  /* 필터 영역 */
  .list-filter-area {
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
  .tabs {
    display: flex !important;
    flex-wrap: nowrap !important; 
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    scrollbar-width: none; 
  }

  .tabs::-webkit-scrollbar {
    display: none; 
  }

  .tabs .tab-item {
    flex: 0 0 auto !important; 
    white-space: nowrap !important; 
  }
  .tabs-primary,
  .tabs-secondary {
    width: auto;
  }

  .tabs-primary .tab-item {
    padding: var(--spacing-xs) var(--spacing-smd);
    font-size: var(--font-size-sm);
  }

  .tabs-secondary .tab-item {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  /* 툴바 영역 */
  .list-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }

  .list-toolbar-left {
    justify-content: space-between;
  }

  .list-toolbar-right {
    width: 100%;
  }

  .search-box-compact {
    max-width: 100%;
    width: 100%;
  }

  /* 리스트 헤더 */
  .list-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .list-header-left,
  .list-header-right {
    width: 100%;
  }
  
  .search-box {
    width: 100%;
  }
  
  .search-select {
    flex-shrink: 0;
  }
  
  .search-input-wrap {
    flex: 1;
  }
  
  .search-input {
    width: 100%;
  }
  
  .list-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-page {
    gap: var(--spacing-md);
  }
  
  /* 갤러리형 카드 */
  .card-gallery {
    padding-right: 1.25rem;
  }
  
  .card-gallery .card-thumbnail {
    display: none;
  }
  
  .card-gallery .engagement {
    position: static;
  }
  
  .card-gallery .card-footer {
    justify-content: space-between;
  }

  /* 투표 섹션 */
  .vote-section {
    max-width: 100%;
  }

  .vote-header {
    align-items: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* 상세 페이지 */
  .detail-title {
    font-size: var(--font-size-lg);
  }

  .detail-meta {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .comment-form {
    flex-direction: column;
  }

  .comment-submit-btn {
    width: 100%;
  }

  /* 팝업 */
  .popup-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }
  .popup-overlay {
    padding: var(--spacing-xl) var(--spacing-md) calc(var(--spacing-md) + 90px);
    align-items: flex-start;
  }
  .popup-content-lg,
  .popup-content-info {
    min-width: 100%;
  }
  .vote-item-num {
    width: 20px;
    height: 20px;
  }
  .btn-icon img {
    width: 15px;
    height: 15px;
  }
  .vote-item-image-upload img {
    width: 15px;
  }
  .merge-evidence-item,
  .merge-evidence-add {
    width: 100px;
    height: 100px;
  }

  /* 서브 모달 반응형 */
  .sub-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md) calc(var(--spacing-md) + 80px);
  }

  .sub-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    max-height: calc(100vh - var(--spacing-sm) - var(--spacing-md) - 80px);
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  /* 서브모달 내부 요소 border-radius (모바일) */
  .sub-content .popup-header {
    border-radius: 12px 12px 0 0;
  }

  .sub-content .popup-body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sub-content .popup-footer {
    border-radius: 0 0 12px 12px;
  }

  /* 셀렉트 드롭다운 태블릿 반응형 */
  .custom-select-dropdown,
  .search-select-dropdown {
    max-height: 180px;
  }

  /* 정보 팝업 */
  .info-meta {
    flex-wrap: wrap;
  }

  .info-images {
    grid-template-columns: 1fr;
  }

  .vote-item-row {
    align-items: stretch;
  }

  .vote-item-input-wrap {
    width: 100%;
  }

  .vote-item-actions {
    justify-content: flex-end;
  }

  .component-grid {
    grid-template-columns: 1fr;
  }

  .file-preview-item {
    width: calc(50% - var(--spacing-sm) / 2);
  }

  .file-upload-row {
    flex-direction: column;
  }

  /* 팝업 패딩 축소 */
  .popup-header {
    padding: var(--spacing-md);
  }

  .popup-body {
    padding: var(--spacing-md);
    gap: var(--spacing-smd);
    overflow-x: visible;
  }

  /* 팝업 내부 데이터 테이블 반응형 (768px) */
  .popup-body .data-table-wrapper {
    margin-left: calc(-1 * var(--spacing-md));
    margin-right: calc(-1 * var(--spacing-md));
    width: calc(100% + 2 * var(--spacing-md));
    border-left: none;
    border-right: none;
    border-radius: 0;
  }

  .popup-body .data-table {
    min-width: 500px;
  }

  .popup-footer {
    padding: var(--spacing-md);
  }

  .form-label {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xs);
  }

  .form-input,
  .form-select {
    padding: var(--spacing-sm) var(--spacing-smd);
    font-size: var(--font-size-sm);
  }

  .form-textarea {
    padding: var(--spacing-sm);
    font-size: var(--font-size-sm);
  }

  /* 파일 업로드 영역 축소 */
  .file-upload-area {
    padding: var(--spacing-md);
  }

  .file-upload-compact {
    padding: var(--spacing-sm);
  }

  .file-upload-label span {
    font-size: var(--font-size-xs);
  }

  /* 정보 팝업 축소 */
  .info-title {
    font-size: var(--font-size-base);
  }

  .info-meta {
    font-size: var(--font-size-xs);
  }

  .info-content {
    font-size: var(--font-size-sm);
  }

  /* 등록 버튼 반응형 */
  .btn-register-fixed {
    right: 20px;
    bottom: 90px;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  .btn-register-fixed img {
    width: 16px;
    height: 16px;
  }


/* 댓글 프로필 반응형*/
  .comment-profile {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .profile-image {
    width: 24px;
    height: 24px;
    background-size: 15px 16px;
  }
  /* 등록 버튼 - 모바일에서 고정 원형 버튼 */
  .btn-register-sm {
    position: fixed;
    right: 15px;
    bottom: 95px;
    z-index: 100;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 103, 51, 0.4);
  }

  .btn-register-sm span {
    display: none;
  }

  .btn-register-sm img {
    width: 22px;
    height: 22px;
  }
  .btn-share {
    padding: 5px 10px;
  }
  
  /* 반응형 페이지네이션 */
  .pagination {
    gap: 2px;
  }

  .pagination-btn {
    width: 28px;
    height: 28px;
  }

  .pagination-btn img {
    width: 14px;
    height: 14px;
  }

  .pagination-first img,
  .pagination-last img {
    width: 15px;
  }

  .pagination-numbers {
    gap: 2px;
  }

  .pagination-num {
    width: 28px;
    height: 28px;
    font-size: 0.8125rem;
  }
  .my-village-select-wrapper .custom-select {
    width: auto;
    min-width: 100px;
  }

  .my-village-select-wrapper .custom-select-trigger {
    width: auto;
    min-width: 100px;
  }
  .btn-register {
    background-image: none;
    padding: 8px;
    box-shadow: none;
  }
  .list-filter-area {
    flex-direction: column;
  }
  .action_box {
    margin-left: 0;
    width: 100%;
  }
  .list-actions {
    margin-left: auto;
  }

}

/* 모바일 (600px 이하) */
@media (max-width: 500px) {
  .list-filter-area {
    flex-direction: column;
  }
  .vote-header {
    flex-direction: column;
  }
  .vote-item-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-xs) var(--spacing-md);
  }
  .vote-item-rating {
    flex-direction: column;
  }
  .vote-item-rating-score {
    min-width: auto;
  }
  .merge-counter-btn {
    width: 28px;
    height: 28px;
  }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
  /* 라디오 그룹 */
  .form-radio-group {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  /* 탭 */
  .tabs {
    gap: var(--spacing-sm);
  }
  
  .tab-item {
    font-size: var(--font-size-sm);
  }
  
  /* 검색 */
  .search-select-trigger {
    min-width: 80px;
    height: 36px;
    font-size: var(--font-size-xs);
  }
  
  .search-input {
    height: 36px;
  }
  
  .search-btn {
    width: 36px;
  }
  
  /* 정렬 탭 */
  .sort-tabs {
    gap: var(--spacing-sm);
  }
  
  .sort-tab {
    font-size: var(--font-size-xs);
  }
  
  /* 카드 */
  .card-text {
    padding: 1rem;
  }

  .list-page {
    gap: var(--spacing-sm);
  }

  /* 투표 카드 그리드 */
  .card-grid-vote {
    grid-template-columns: 1fr;
  }

  /* 상세 페이지 */
  .detail-actions {
    max-width: 100%;
  }

  .comment-item {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  /* 등록 버튼 - 모바일 */
  .btn-register-fixed {
    right: 16px;
    bottom: 80px;
  }

  /* 등록 버튼 - 모바일에서 원형으로 변경 */
  .btn-register-fixed.mobile-circle {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
  }

  .btn-register-fixed.mobile-circle span {
    display: none;
  }

  .btn-register-fixed.mobile-circle img {
    width: 22px;
    height: 22px;
  }

  /* 등록 버튼 - 작은 모바일에서 축소 */
  .btn-register-sm {
    width: 45px;
    height: 45px;
    bottom: 80px;
    right: 10px;
  }
  /* 공유하기 버튼 - 모바일에서 이미지 제거 */
  .btn-share img {
    display: none;
  }
   /* 투표 기간 등 가로 배열 유지 요청 반영 */
  .form-row {
    flex-direction: row !important;
  }
  
  .form-row .form-input {
    flex: 1;
    min-width: 0; /* flex box 내에서 input 너비 버그 방지 */
    font-size: 13px;
    padding: 8px;
  }

  .form-separator {
    margin: 0 2px;
  }

  /* 모바일 팝업 패딩 최적화 */
  .popup-body {
    padding: 15px;
    overflow-x: visible;
  }
  
  .popup-header {
    padding: 12px 15px;
  }
  
  .popup-footer {
    padding: 12px 15px;
  }
  .vote-manage-table th {
    padding: 5px 10px;
  } 

  /* 서브 모달 작은 모바일 반응형 */
  .sub-modal {
    padding: var(--spacing-xl) var(--spacing-md) calc(var(--spacing-sm) + 70px);
  }

  .sub-content {
    max-height: calc(100vh - var(--spacing-xs) - var(--spacing-sm) - 70px);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  /* 서브모달 내부 요소 border-radius (작은 모바일) */
  .sub-content .popup-header {
    border-radius: 12px 12px 0 0;
  }

  .sub-content .popup-body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .sub-content .popup-footer {
    border-radius: 0 0 12px 12px;
  }

  /* 팝업 내부 데이터 테이블 작은 모바일 반응형 */
  .popup-body .data-table-wrapper {
    margin-left: calc(-1 * 15px);
    margin-right: calc(-1 * 15px);
    width: calc(100% + 30px);
  }

  .popup-body .data-table {
    min-width: 450px;
  }

  /* 셀렉트 드롭다운 모바일 반응형 */
  .custom-select-dropdown,
  .search-select-dropdown {
    max-height: 180px;
  }

  /* 회원가입 모바일 */
  .auth-popup {
    min-width: inherit;
  }
  .merge-evidence-item,
  .merge-evidence-add {
    width: 80px;
    height: 80px;
  }

  .merge-evidence-plus {
    font-size: 32px;
  }

  .merge-evidence-add .merge-evidence-plus {
    font-size: 24px;
  }

  .merge-vote-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .merge-vote-item-title {
    margin-right: 0;
  }
}

/* ========================================
   헤더 스타일
======================================== */
.header {
  width: 100%;
}

.sub-header {
  background-color: var(--color-bg-dark);
}

.sub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--sub-header-height);
}

.sub-header-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-white);
}

.sub-header-link {
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.sub-header-link:hover {
  color: var(--color-primary-yellow);
}

.sub-header-divider {
  color: rgba(255, 255, 255, 0.5);
}

.sub-header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-white);
}
.sub-header-profile {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.sub-header-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-header-user {
  color: var(--color-primary-yellow);
}

.sub-header-villages {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.village-tag {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: var(--color-text-white);
  transition: background-color 0.2s;
}

body.is-map-page {
  overflow: hidden;
}

.village-tag:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.main-header {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gnb {
  display: none;
  align-items: center;
  gap: 3rem;
}

.gnb-item {
  position: relative;
}

.gnb-link {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--color-text-black);
  padding: 1.5rem 0.5rem;
  transition: color 0.2s;
}

.gnb-link:hover {
  color: var(--color-primary-purple);
}

/* 드롭다운 말풍선 스타일 */
.gnb-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.gnb-dropdown-inner {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-purple) 0%, #7c82e8 100%);
  border-radius: 1rem;
  padding: 1rem 0.5rem;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: 0 10px 40px rgba(99, 105, 221, 0.35),
              0 4px 12px rgba(99, 105, 221, 0.2);
}

/* 말풍선 화살표 */
.gnb-dropdown-inner::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid var(--color-primary-purple);
}

.gnb-sub-link {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gnb-sub-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateX(2px);
}

/* Hover 시 드롭다운 표시 */
.gnb-item.has-sub:hover .gnb-dropdown {
  opacity: 1;
  visibility: visible;
}

/* 활성화된 메뉴 스타일 */
.gnb-link.active {
  color: var(--color-primary-purple);
}

.gnb-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-primary-purple);
  border-radius: 50%;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.icon-btn img {
  width: 16px;
  height: 16px;
}

.icon-btn-purple {
  background-color: var(--color-primary-purple);
}

.icon-btn-purple:hover {
  background-color: #5258c9;
}

.icon-btn-blue {
  background-color: var(--color-primary-blue);
}

.icon-btn-blue:hover {
  background-color: #3d8be6;
}

.icon-btn-yellow {
  background-color: var(--color-primary-yellow);
}

.icon-btn-yellow:hover {
  background-color: #e69d00;
}

/* 검색 버튼 활성화 상태 */
.btn-search.active {
  background-color: var(--color-primary-purple);
  transform: rotate(90deg);
}

/* ========================================
   통합검색 패널 스타일
======================================== */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-panel.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.search-panel-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.search-panel-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--color-primary-purple) 0%, #7c82e8 100%);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-panel.open .search-panel-content {
  transform: translateY(0);
}

.search-panel-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 3rem;
}

.search-panel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-panel-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: #fff;
}

.search-panel-desc {
  font-size: var(--font-size-base);
  color: rgba(255, 255, 255, 0.8);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 60px;
  overflow: hidden;
}

.all-search-input {
  flex: 1;
  height: 60px;
  padding: 0 2rem;
  font-size: var(--font-size-lg);
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text-black);
}

.all-search-input::placeholder {
  color: var(--color-text-gray);
}

.search-submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.5rem;
  margin-right: 6px;
  background: var(--color-primary-yellow);
  border-radius: 30px;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: #fff;
  transition: background-color 0.2s, transform 0.2s;
}

.search-submit-btn:hover {
  background: #e69d00;
  transform: scale(1.02);
}

.search-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.search-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 검색패널 반응형 */
@media (max-width: 768px) {
  .search-panel-inner {
    padding: 4rem 1.5rem 2rem;
  }
  
  .search-panel-header {
    margin-bottom: 1.5rem;
  }
  
  .search-panel-title {
    font-size: var(--font-size-xl);
  }
  
  .search-panel-desc {
    font-size: var(--font-size-sm);
  }
  
  .search-input-wrapper {
    max-width: 100%;
    border-radius: 50px;
  }
  
  .all-search-input {
    height: 50px;
    padding: 0 1.5rem;
    font-size: var(--font-size-base);
  }
  
  .search-submit-btn {
    height: 40px;
    padding: 0 1rem;
    margin-right: 5px;
    border-radius: 25px;
    font-size: var(--font-size-sm);
  }
  
  .search-submit-btn span {
    display: none;
  }
  
  .search-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 0.75rem;
    font-size: var(--font-size-xs);
  }
  
  .search-close-btn span {
    display: none;
  }
}

@media (max-width: 480px) {
  .search-panel-inner {
    padding: 1.5rem 1rem 1.5rem;
  }
  
  .search-input-wrapper {
    border-radius: 40px;
  }
  
  .all-search-input {
    height: 46px;
    padding: 0 1.25rem;
  }
  
  .search-submit-btn {
    height: 36px;
    width: 45px;
  }
}

/* ========================================
   로그인/로그아웃 상태별 버튼 표시
======================================== */
/* 비로그인 상태 (login 클래스) - 버튼 2개: 로그인(보라), 검색(노랑) */
.header.login .btn-logout,
.header.login .btn-mypage,
.header.login .sub-header-right {
  display: none;
}

.header.login .btn-login,
.header.login .btn-search {
  display: flex;
}

/* 로그인 상태 (logout 클래스) - 버튼 3개: 로그아웃(파랑), 마이페이지(보라), 검색(노랑) */
.header.logout .btn-login {
  display: none;
}

.header.logout .btn-logout,
.header.logout .btn-mypage,
.header.logout .btn-search {
  display: flex;
}

.header.logout .sub-header-right {
  display: flex;
}


/* ========================================
   푸터 스타일
======================================== */
.footer {
  width: 100%;
}

.footer-partner {
  background-color: var(--color-bg-footer);
}

.footer-partner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.footer-partner-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-white);
}

.footer-partner-logos {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.footer-main {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
}

.footer-main-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
}

.footer-info {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.footer-logo {
  flex-shrink: 0;
}

.footer-text {
  font-size: var(--font-size-sm);
}

.footer-terms {
  color: var(--color-text-black);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-terms:hover {
  color: var(--color-primary-orange);
}

.footer-address {
  margin-top: 12px;
  color: var(--color-text-gray);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright {
  margin-top: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--color-text-gray);
}

.footer-apps {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.app-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text-gray);
  transition: color 0.2s;
}

.app-link:hover {
  color: var(--color-text-black);
}

.app-link:hover .app-icon {
  background-color: #333;
}
.app-link.apple .app-icon {
  background: none;
  width: 100%;
}
.app-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.app-icon-orange {
  background-color: var(--color-primary-orange);
}

.app-icon-orange:hover {
  background-color: #e55a2a;
}

.app-label {
  font-size: var(--font-size-xs);
}

/* 모바일 하단 네비  */
.speed-dial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.speed-dial-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-bottom-nav-wrap {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100vw;
  align-items: stretch;
}
.mobile-bottom-nav-wrap .mobile-bottom-nav {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: 80px;
  background: #fff;
  border-top: 1px solid #eee;
  align-items: center;
  justify-content: space-around;
  padding: 10px 4px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}
.mobile-bottom-nav > * {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
button.mobile-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #6369dd;
}
.mobile-nav-icon {
  position: relative;
  width: 28px;
  height: 28px;
}
.mobile-nav-icon .icon-default {
  display: block;
}
.mobile-nav-icon .icon-hover {
  display: none;
}
.mobile-nav-item:hover .icon-default,
.mobile-nav-item.active .icon-default {
  display: none;
}
.mobile-nav-item:hover .icon-hover,
.mobile-nav-item.active .icon-hover {
  display: block;
}
.mobile-nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

.mobile-nav-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #6369dd;
  position: relative;
  top: -12px;
}
.mobile-nav-home-btn {
  width: 52px;
  height: 52px;
  background: #6369dd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 105, 221, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mobile-nav-home:hover .mobile-nav-home-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(99, 105, 221, 0.5);
}

/* Speed Dial: 서브메뉴 버튼 위로 수직, Pill, Staggered */
.speed-dial-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.speed-dial-menu {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 8px;
  padding-bottom: 4px;
  min-width: 100px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.speed-dial-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.speed-dial-menu.open .speed-dial-item {
  animation: speed-dial-stagger 0.3s ease forwards;
}
.speed-dial-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 100px;
  padding: 10px 16px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 0.8125rem;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid #eee;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.speed-dial-item:hover,
.speed-dial-item:active {
  background: rgba(99, 105, 221, 0.08);
  color: #6369dd;
  box-shadow: 0 4px 20px rgba(99, 105, 221, 0.2);
}
.speed-dial-item-icon {
  display: none;
}
.speed-dial-item-label {
  line-height: 1.2;
}
@keyframes speed-dial-stagger {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 769px) {
  .speed-dial-menu {
    display: none !important;
  }
}

/* ========================================
   레이아웃 반응형
======================================== */
/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
  .gnb {
    display: flex;
  }
  
}

@media (max-width: 768px) {
  .footer-partner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer-main-inner {
    flex-direction: column;
  }

  .mobile-bottom-nav-wrap {
    display: flex;
  }
  .mobile-nav-story-panel {
    display: none !important;
  }  
}
@media (min-width: 769px) {
    .mobile-nav-story-panel {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .sub-header-links {
    display: none;
  }
}

/* ========================================
   유틸리티 클래스
======================================== */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.font-regular { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.text-white { color: var(--color-text-white); }
.text-black { color: var(--color-text-black); }
.text-gray { color: var(--color-text-gray); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   레이아웃 래퍼
======================================== */
.layout-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: var(--spacing-xl);
}

/* 메인 페이지에서는 패딩 제거 */
.home-page ~ .main-content,
.main-content:has(.home-page) {
  padding-top: 0;
}

/* ========================================
   모바일 하단 네비게이션
======================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-around;
  padding: 10px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--color-text-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--color-primary-purple);
}

.mobile-nav-icon {
  position: relative;
  width: 28px;
  height: 28px;
}

.mobile-nav-icon .icon-default {
  display: block;
}

.mobile-nav-icon .icon-hover {
  display: none;
}

.mobile-nav-item:hover .icon-default,
.mobile-nav-item.active .icon-default {
  display: none;
}

.mobile-nav-item:hover .icon-hover,
.mobile-nav-item.active .icon-hover {
  display: block;
}

.mobile-nav-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* 홈 버튼 (가운데) */
.mobile-nav-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-primary-purple);
  position: relative;
  top: -12px;
}

.mobile-nav-home-btn {
  width: 52px;
  height: 52px;
  background-color: var(--color-primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 105, 221, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-nav-home:hover .mobile-nav-home-btn {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(99, 105, 221, 0.5);
}

.mobile-nav-home .mobile-nav-label {
  color: var(--color-primary-purple);
}

/* 모바일에서만 표시 */
/* 모바일 (768px 이하) - 하단 네비게이션 표시 */
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  /* 모바일에서 푸터 숨김 */
  .footer {
    display: none;
  }
  
  /* 하단 네비게이션 공간 확보 */
  .main-content {
    padding-bottom: 80px;
  }
  
  /* 모바일 헤더 - 서브헤더 숨김 */
  .sub-header {
    display: none;
  }
  
  /* 모바일 헤더 버튼들 숨김 (검색, 로그인 등) */
  .header-buttons .icon-btn {
    display: none;
  }
}

/* 작은 화면 (480px 이하) */
@media (max-width: 480px) {
  .mobile-bottom-nav {
    height: 70px;
    padding: 8px 4px;
  }
  
  .mobile-nav-item {
    padding: 4px 6px;
    gap: 2px;
  }
  
  .mobile-nav-icon {
    width: 22px;
    height: 22px;
  }
  
  .mobile-nav-label {
    font-size: 0.625rem;
  }
  
  .mobile-nav-home {
    top: -12px;
  }
  
  .mobile-nav-home-btn {
    width: 50px;
    height: 50px;
  }
  
  .main-content {
    padding-bottom: 70px;
  }
}

/* ========================================
   서브페이지 레이아웃
======================================== */
.subpage-layout {
  width: 100%;
  margin-top: calc(-1 * var(--spacing-xl));
}

/* 서브 비주얼 영역 */
.sub-visual {
  position: relative;
  width: 100%;
  height: 160px;
  background-color: var(--color-bg-light);
  overflow: hidden;
}

/* 01: 왼쪽 하단 - 캐릭터 */
.sub-visual-deco-01 {
  left: 7%;
  bottom: 0;
}

.sub-visual-deco-01 img {
  height: 160px;
  width: auto;
}

/* 02: 오른쪽 하단 - 캐릭터 */
.sub-visual-deco-02 {
  right: 13%;
  bottom: 0;
}

.sub-visual-deco-02 img {
  height: 150px;
  width: auto;
}

/* 03: 왼쪽 중앙 - 큰 장식 */
.sub-visual-deco-03 {
  left: 0;
  bottom: -7px;
}

.sub-visual-deco-03 img {
  height: 130px;
  width: auto;
}

/* 04: 오른쪽 중앙 - 작은 장식 */
.sub-visual-deco-04 {
  top: -56px;
  right: 0;
}

.sub-visual-deco-04 img {
  height: 160px;
  width: auto;
}

/* 모든 장식 이미지 공통 애니메이션 - 아래에서 위로 */
.sub-visual-deco {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

/* 애니메이션 활성화 상태 */
.sub-visual-deco.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.sub-visual-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 1;
  text-align: center;
}

.sub-visual-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-gray);
}

.sub-visual-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-primary-green-dark);
}

/* 브레드크럼 네비게이션 */
.breadcrumb-nav {
  background-color: var(--color-primary-green-dark);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  height: 50px;
  gap: 0;
}

.breadcrumb-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--color-primary-green-dark);
  transition: background-color 0.2s;
}

.breadcrumb-home:hover {
  background-color: #147000;
}

.breadcrumb-item {
  position: relative;
  height: 50px;
  display: flex;
  align-items: center;
}

.breadcrumb-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-select {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.breadcrumb-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 0 1.5rem;
  height: 100%;
  cursor: pointer;
  min-width: 140px;
  min-width: 120px;
}

.breadcrumb-select-trigger:hover {
  opacity: 0.8;
}

.breadcrumb-select-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.breadcrumb-select-icon.rotate {
  transform: rotate(180deg);
}

/* 커스텀 드롭다운 */
.breadcrumb-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  overflow: hidden;
}

.breadcrumb-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

.breadcrumb-dropdown-list {
  list-style: none;
}

.breadcrumb-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.breadcrumb-dropdown-item:hover {
  background: var(--color-bg-light);
  color: var(--color-primary-green-dark);
}

.breadcrumb-dropdown-item.active {
  background: var(--color-primary-green-dark);
  color: #fff;
}

.breadcrumb-text {
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 0 1.25rem;
}

/* 서브페이지 컨텐츠 */
.subpage-content {
  padding: var(--spacing-xl) 0;
}

.subpage-demo-content {
  min-height: 400px;
}

/* 반응형 - 1440px */
@media (max-width: 1440px) {
  .container {
    padding: 0 30px;
  }
}
/* 서브페이지 반응형 - 1024px 이하 */
@media (max-width: 1024px) {

  .container {
    padding: 0 20px;
  }
  
  .main-header {
    border-bottom: none;
  }
  
  .sub-visual {
    height: 100px;
    border-radius: 15px;
    margin: 0 1rem;
    width: calc(100% - 2rem);
  }
  
  .sub-visual-title {
    font-size: var(--font-size-xl);
  }
  
  .sub-visual-subtitle {
    font-size: var(--font-size-xs);
  }
  
  .sub-visual-deco {
    display: none;
  }
  
  .breadcrumb-nav {
    margin-top: 1rem;
  }
}

/* 서브페이지 반응형 - 768px 이하 */
@media (max-width: 768px) {
  .subpage-content {
    padding: var(--spacing-md) 0;
  }
  .sub-visual {
    height: 90px;
  }
  
  .sub-visual-title {
    font-size: var(--font-size-xl);
  }
  
  .sub-visual-subtitle {
    font-size: var(--font-size-xs);
  }
  
  .breadcrumb-nav {
    display: none;
  }
  
  .breadcrumb-inner {
    height: 44px;
  }
  
  .breadcrumb-home {
    width: 44px;
    height: 44px;
  }
  
  .breadcrumb-item {
    height: 44px;
  }
  
  .breadcrumb-select-trigger {
    font-size: var(--font-size-xs);
    min-width: 100px;
    padding: 0 1rem;
  }
  
  .breadcrumb-dropdown {
    min-width: 140px;
  }
}

@media (max-width: 480px) {

  .container {
    padding: 0 15px;
  }
  .sub-visual-deco {
    display: none;
  }
  
  .breadcrumb-select-trigger {
    min-width: 80px;
    padding: 0 0.75rem;
    gap: 0.25rem;
  }
  
  .breadcrumb-dropdown {
    min-width: 120px;
  }
}

/*
   폰트 크기 설정
*/
html {
  font-size: 16px; /* 기본값 (medium) */
}

html[data-font-size="small"] {
  font-size: 14px;
}

html[data-font-size="medium"] {
  font-size: 16px;
}

html[data-font-size="large"] {
  font-size: 18px;
}