/**
 * [전시 목록]
 * - 역할: 사이드 필터 + 카드 그리드 + 관리자 메뉴 (디자인 시스템)
 * - 작성/수정일: 2026-08-07
 */

/* [전시 작품 선택]
 * - 역할: 탭·검색 모달·이미지1형 선택 카드
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__artworks {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.an-ex-write__artwork-register {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.an-ex-write__artwork-register .an-ar-write__hint {
  margin-top: 0;
}
.an-ex-write__aw-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 var(--space-20);
  padding: 0;
  border-bottom: 1px solid var(--border-color);
}
.an-ex-write__aw-tab {
  appearance: none;
  display: inline-flex;
  margin: 0 18px 0 0;
  padding: 10px 14px 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted-color);
  font: inherit;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
}
.an-ex-write__aw-tab.is-current {
  color: var(--title-color);
  font-weight: 700;
}
.an-ex-write__aw-tab.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background: var(--title-color);
}
/* [전시 작품 추가 슬롯]
 * - 역할: 탭은 추가 방법만 바꾸고 하단 목록 높이를 고정
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__aw-slot {
  min-height: 0;
}
.an-ex-write__aw-panel:not([hidden]) {
  min-height: 0;
}
.an-ex-write__aw-empty[hidden],
.an-ex-write__aw-link-bar[hidden] {
  display: none !important;
}
/* [전시 작품 연결 빈 상태]
 * - 역할: 새 작품 등록 드롭존과 같은 슬롯 높이로 탭 전환 이질감 완화
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__aw-empty .an-empty {
  --an-empty-pad-y: 18px;
  --an-empty-pad-x: 16px;
  --an-empty-icon: 18px;
  --an-empty-ring: 40px;
  min-height: 196px;
  gap: 4px;
  padding: 18px 16px;
  border-radius: 14px;
  box-sizing: border-box;
}
.an-ex-write__aw-empty .an-empty__visual {
  margin-bottom: 0;
}
.an-ex-write__aw-empty .an-empty__actions {
  margin-top: 6px;
}
.an-ex-write__aw-empty .an-empty__actions .primary-btn2,
.an-ex-write__aw-empty .an-empty__actions .secondary-btn {
  min-height: 36px;
}
.an-ex-write__aw-link-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  min-height: 0;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--section-bg-color);
}
.an-ex-write__aw-link-bar .secondary-btn {
  min-height: 36px;
}
.an-ex-write__aw-link-bar .an-ex-write__hint {
  margin: 0;
  flex: 1;
  min-width: 12rem;
}
.an-ex-write__aw-panel[hidden] {
  display: none !important;
}
.an-ex-write__artwork-selected-title {
  margin: var(--space-25) 0 12px;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--title-color);
}
.an-ex-write__artwork-selected-title[hidden] {
  display: none !important;
}
.an-ex-write__artwork-selected {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.an-ex-write__artwork-selected:empty {
  display: none;
}
.an-ex-write__artwork-actions {
  display: flex;
  gap: 4px;
}
.an-ex-write__artwork-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-color);
  background: var(--white-color);
  border-radius: var(--radius-sm);
  color: var(--title-color);
  cursor: pointer;
}
body.an-ex-aw-modal-open {
  overflow: hidden;
}
.an-ex-aw-modal[hidden] {
  display: none !important;
}
/* [전시 작품 연결 모달]
 * - 역할: 목록 건수와 무관하게 창 높이를 고정하고 리스트만 스크롤
 * - 작성/수정일: 2026-08-13
 */
.an-ex-aw-modal {
  z-index: var(--z-modal);
  padding: 24px;
  align-items: center;
}
.an-ex-aw-modal__dialog {
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  height: min(720px, 100%);
  max-height: 100%;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
}
.an-ex-aw-modal__dialog .an-modal__head,
.an-ex-aw-modal__dialog .an-modal__actions {
  flex: none;
}
.an-ex-aw-modal__dialog .an-modal__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.an-ex-aw-modal__search,
.an-ex-aw-modal__dialog .an-ex-write__hint,
.an-ex-aw-modal__status {
  flex: none;
}
.an-ex-aw-modal__search {
  margin: 0 0 12px;
}
.an-ex-aw-modal__search input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
}
.an-ex-aw-modal__list {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
}
@media (max-width: 767.98px) {
  .an-ex-aw-modal {
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .an-ex-aw-modal__dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 16px;
  }
  .an-ex-aw-modal__dialog .an-modal__actions {
    margin-top: 16px;
  }
}
.an-ex-aw-modal__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
  text-align: left;
  font: inherit;
  color: var(--title-color);
  cursor: pointer;
}
.an-ex-aw-modal__item:hover {
  border-color: var(--title-color);
  background: var(--section-bg-color);
}
.an-ex-aw-modal__item.is-added,
.an-ex-aw-modal__item:disabled {
  opacity: 0.55;
  cursor: default;
}
.an-ex-aw-modal__thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--section-bg-color);
}
.an-ex-aw-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.an-ex-aw-modal__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.an-ex-aw-modal__meta strong {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--title-color);
}
.an-ex-aw-modal__meta em {
  font-style: normal;
  font-size: var(--fs-caption);
  color: var(--muted-color);
}
.an-ex-aw-modal__thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--muted-color);
}
.an-ex-aw-modal__add {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--title-color);
  white-space: nowrap;
}
.an-ex-aw-modal__status {
  margin: 12px 0 0;
  color: var(--muted-color);
  font-size: var(--fs-caption);
}
/* [전시장 검색] 목록 항목은 이름·주소만 — 작성/수정일: 2026-08-13 */
.an-ex-gl-modal__item {
  grid-template-columns: minmax(0, 1fr);
}
.an-ex-detail__artwork-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}
.an-ex-detail__artwork-card {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.an-ex-detail__artwork-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.an-ex-detail__artwork-card-body {
  display: grid;
  gap: 4px;
  padding: 12px;
}
.an-ex-detail__artwork-card-body span,
.an-ex-detail__artwork-card-body p {
  margin: 0;
  color: var(--muted-color);
  font-size: var(--fs-caption);
}

.an-ex-list.is-loading .an-ex-main {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity var(--duration-base);
}

/* [경로]
 * - 역할: 기본은 왼쪽 묶음(상세). 목록만 홈·제목 / RSS 분리
 * - 작성/수정일: 2026-08-07
 */
.an-ex-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: var(--space-25);
  font-size: var(--fs-caption);
  color: var(--muted-color);
}

.an-ex-list .an-ex-crumb {
  justify-content: space-between;
  gap: 8px 16px;
}

.an-ex-crumb a {
  color: var(--text-color);
  text-decoration: none;
}

.an-ex-crumb__trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.an-ex-crumb__icon,
.an-ex-crumb__rss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: inherit;
  flex-shrink: 0;
}

.an-ex-crumb__icon i,
.an-ex-crumb__rss i {
  font-size: var(--fs-label, 14px);
  line-height: 1;
}

.an-ex-crumb__rss:hover {
  color: var(--title-color, #171717);
}

.an-ex-list__intro {
  margin-bottom: var(--space-40);
}

.an-ex-list__title {
  margin: 0 0 var(--space-10);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  color: var(--title-color);
}

.an-ex-list__desc {
  margin: 0;
  max-width: 640px;
  font-size: var(--fs-body);
  color: var(--text-color);
  line-height: 1.7;
}

.an-ex-list__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-40);
  align-items: start;
}

/* Sidebar */
.an-ex-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100dvh - 124px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  padding-bottom: 24px;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.an-ex-sidebar::-webkit-scrollbar {
  width: 4px;
}

.an-ex-sidebar::-webkit-scrollbar-thumb {
  background: var(--divider-color);
  border-radius: var(--radius-pill);
}

.an-ex-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.an-ex-sidebar__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-20);
}

.an-ex-sidebar__close {
  border: 0;
  background: transparent;
  color: var(--title-color);
  font-size: var(--fs-h5, 20px);
  cursor: pointer;
}

.an-ex-filter + .an-ex-filter {
  margin-top: var(--space-30);
  padding-top: var(--space-25);
  border-top: 1px solid var(--border-color);
}

.an-ex-filter__title {
  margin: 0 0 var(--space-15);
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--title-color);
}

.an-ex-filter__search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
}

.an-ex-filter__search i {
  color: var(--muted-color);
}

.an-ex-filter__search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: var(--fs-label);
  color: var(--title-color);
}

.an-ex-filter__checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.an-ex-filter__more {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--muted-color);
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.an-ex-filter__actions {
  display: grid;
  gap: 10px;
  margin-top: var(--space-30);
}

.an-ex-mapview__panel .an-ex-filter__actions--solo .secondary-btn {
  width: 100%;
  justify-content: center;
}

.an-ex-list .an-ex-filter__apply {
  display: none !important;
}

.an-ex-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  color: var(--title-color);
  cursor: pointer;
}

.an-ex-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.an-ex-period {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.an-ex-period label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: all var(--duration-base);
}

.an-ex-period input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.an-ex-period label.is-active,
.an-ex-period label:has(input:checked) {
  background: var(--primary-color);
  border-color: transparent;
  color: var(--white-color);
}

.an-ex-sidebar__backdrop {
  display: none;
}

/* Main */
.an-ex-main__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-15);
  margin-bottom: var(--space-25);
}

.an-ex-main__count {
  margin: 0;
  font-size: var(--fs-label);
  color: var(--text-color);
}

.an-ex-main__count strong {
  color: var(--title-color, #171717);
  font-weight: 700;
}

.an-ex-main__count-all {
  color: var(--muted-color, #7c7c7c);
}

.an-ex-main__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.an-ex-main__filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
  color: var(--title-color);
  font-size: var(--fs-caption);
  font-weight: 600;
  cursor: pointer;
}

.an-ex-sort select {
  height: 42px;
  padding: 0 44px 0 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--white-color);
  color: var(--title-color);
  font-size: var(--fs-caption);
  font-weight: 500;
}

.an-ex-view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.an-ex-view-toggle button {
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--white-color);
  color: var(--muted-color);
  cursor: pointer;
}

.an-ex-view-toggle button.is-active {
  /* [보기 토글] 라이트 활성 톤다운 (CTA보다 약한 칩) — 작성/수정일: 2026-08-08 */
  background: var(--chip-color, #ececec);
  color: var(--title-color, #171717);
}

/* [전시 등록 CTA]
 * - 역할: 목록 툴바 CTA 제거 → 전역 헤더·FAB(.an-compose)로 이전
 * - 작성/수정일: 2026-08-09
 * - 수정일: 2026-08-21
 */

/* Cards */
.an-ex-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-30) var(--gutter);
}

.an-ex-grid.is-list {
  grid-template-columns: 1fr;
  gap: 0;
}

.an-ex-grid.is-list .an-ex-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: 20px;
  /* [리스트 구분선] 역할: 행 사이 흐린 라인 — 작성/수정일: 2026-08-08 */
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color, #eeeeee);
}

.an-ex-grid.is-list .an-ex-card:last-child {
  border-bottom: 0;
}

.an-ex-card {
  position: relative;
  min-width: 0;
}

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

.an-ex-card__media {
  position: relative;
  margin-bottom: 14px;
}

.an-ex-grid.is-list .an-ex-card__media {
  margin-bottom: 0;
}

.an-ex-card__thumb {
  display: block;
  aspect-ratio: var(--ex-poster-ratio, 480 / 679);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--section-bg-color);
  border: 1px solid var(--border-color);
}

.an-ex-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-image);
}

.an-ex-card:hover .an-ex-card__thumb img {
  transform: scale(1.05);
}

.an-ex-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    var(--section-bg-color),
    var(--chip-color)
  );
}

.an-ex-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1;
}

.an-ex-status--ongoing {
  background: var(--primary-color);
  color: var(--white-color);
}

.an-ex-status--upcoming {
  background: var(--white-color);
  color: var(--title-color);
  border: 1px solid var(--border-color);
}

.an-ex-status--ended {
  background: var(--chip-color);
  color: var(--muted-color);
}

.an-ex-card-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.an-ex-card-menu__btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.96);
  /* 썸네일 위 흰 원형 고정 → 아이콘은 항상 다크 (사이트 다크테마와 무관) — 2026-08-08 */
  color: var(--title-color, #171717);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

html.dark .an-ex-card-menu__btn,
body.dark .an-ex-card-menu__btn {
  background: rgba(255, 255, 255, 0.96);
  color: var(--title-color, #171717);
}

/**
 * [리스트형 케밥]
 * - 역할: [썸네일][내용] …… [케밥] 행 우측 배치
 * - 작성/수정일: 2026-08-08
 */
.an-ex-grid.is-list .an-ex-card-menu {
  position: relative;
  top: auto;
  right: auto;
  align-self: center;
  justify-self: end;
  padding: 0 4px 0 8px;
}

.an-ex-grid.is-list .an-ex-card-menu__btn {
  background: transparent;
  box-shadow: none;
  color: var(--title-color, #171717);
}

html.dark .an-ex-grid.is-list .an-ex-card-menu__btn,
body.dark .an-ex-grid.is-list .an-ex-card-menu__btn {
  background: transparent;
  color: #f0f0f0;
  box-shadow: none;
}

.an-ex-grid.is-list .an-ex-card-menu__btn:hover {
  background: var(--section-bg-color, #f7f7f7);
}

html.dark .an-ex-grid.is-list .an-ex-card-menu__btn:hover,
body.dark .an-ex-grid.is-list .an-ex-card-menu__btn:hover {
  background: #2e2e2e;
}

.an-ex-card-menu__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.an-ex-card-menu__list[hidden] {
  display: none;
}

.an-ex-card-menu__list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--title-color);
  font-size: var(--fs-label);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.an-ex-card-menu__list button:hover {
  background: var(--section-bg-color);
}

.an-ex-card-menu__list button.is-danger {
  color: #e11d48;
}

.an-ex-card-menu__sep {
  height: 1px;
  margin: 6px 0;
  background: var(--border-color);
}

.an-ex-card__body {
  min-width: 0;
}

.an-ex-grid.is-list .an-ex-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 4px 8px 20px;
}

.an-ex-card__type {
  margin: 0 0 6px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--muted-color);
  letter-spacing: 0.02em;
}

.an-ex-card__title {
  margin: 0 0 12px;
  letter-spacing: var(--letter-tight);
}

.an-ex-card__title a {
  color: var(--title-color);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-ex-card__title a:hover {
  opacity: 0.7;
}

.an-ex-card__facts {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.an-ex-card__facts li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.45;
}

.an-ex-card__facts i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--muted-color);
  font-size: var(--fs-label, 14px);
}

.an-ex-card__facts span {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-ex-card__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* [전시 목록] stats 아이콘·숫자 동일 크기 — 작성/수정일: 2026-08-16 */
.an-ex-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  line-height: 1;
  color: var(--muted-color);
  cursor: default;
}

button.an-ex-card__stat {
  cursor: pointer;
}

button.an-ex-card__stat:hover,
button.an-ex-card__stat.is-active {
  color: var(--title-color);
}

.an-ex-card__stat i {
  display: inline-block;
  width: 1em;
  line-height: 1;
  text-align: center;
}

.an-ex-card__stat em {
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: inherit;
  line-height: 1;
  color: var(--title-color);
  font-variant-numeric: tabular-nums;
}

.an-ex-empty {
  padding: var(--space-80) var(--space-20);
  text-align: center;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  background: var(--section-bg-color);
}

.an-ex-empty p {
  margin: 0 0 var(--space-20);
  color: var(--text-color);
}

/* DS Pagination extras */
.an-pagination--ex {
  margin-top: var(--space-55);
}

.an-pagination--ex .an-pagination__nav {
  width: auto;
  min-width: 72px;
  padding: 0 14px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.an-pagination--ex .active,
.an-pagination--ex a.active {
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
 * Exhibition Detail (디자인 시스템 전시상세)
 * -------------------------------------------------------------------------- */
.an-ex-detail.section-pad--sm {
  padding-bottom: var(--space-100);
}

/* [뒤로가기] 헤더 아래 · 목록 이동 — 작성/수정일: 2026-08-07 */
.an-ex-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-20);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--title-color);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--duration-base);
}

.an-ex-detail__back i {
  font-size: var(--fs-h6, 18px);
  line-height: 1;
}

.an-ex-detail__back:hover {
  color: var(--muted-color);
}

.an-ex-detail__back:hover span {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.an-ex-detail .an-ex-crumb {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: var(--space-25);
}

.an-ex-detail__head {
  margin-bottom: var(--space-30);
}

.an-ex-detail__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.an-ex-detail__title-main {
  min-width: 0;
  flex: 1;
}

.an-ex-detail__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--muted-color);
}

.an-ex-detail__title-main .an-ex-status {
  position: static;
  margin-bottom: 10px;
}

.an-ex-detail__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: var(--letter-tight);
  line-height: 1.3;
  color: var(--title-color);
  word-break: keep-all;
}

.an-ex-detail__menu {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-end;
}

.an-ex-detail__menu-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--title-color);
  cursor: pointer;
}

.an-ex-detail__menu-btn:hover,
.an-ex-detail__menu-btn[aria-expanded="true"] {
  background: transparent;
  color: var(--title-color);
}

.an-ex-detail__menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 180px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.an-ex-detail__menu-list[hidden] {
  display: none;
}

.an-ex-detail__menu-list a,
.an-ex-detail__menu-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--title-color);
  font-family: inherit;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
}

.an-ex-detail__menu-list button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.an-ex-detail__menu-list a:hover,
.an-ex-detail__menu-list button:hover {
  background: var(--section-bg-color);
}

.an-ex-detail__panel {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  margin-bottom: var(--space-40);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
}

.an-ex-detail__poster {
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--section-bg-color);
}

/* [포스터 Lightbox] 클릭 확대 버튼 래퍼 — 작성/수정일: 2026-08-09 */
.an-ex-detail__poster-btn {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.an-ex-detail__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-ex-detail__poster-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-color);
}

.an-ex-info-table {
  margin: 0;
}

.an-ex-info-table__row {
  display: grid;
  grid-template-columns: 88px 1px minmax(0, 1fr);
  align-items: center;
  gap: 0 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.an-ex-info-table__row::before {
  content: "";
  grid-column: 2;
  grid-row: 1 / -1;
  width: 1px;
  height: 14px;
  background: var(--border-color);
  align-self: center;
}

.an-ex-info-table dt {
  grid-column: 1;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--title-color);
}

.an-ex-info-table dd {
  grid-column: 3;
  margin: 0;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-color);
  line-height: 1.55;
}

.an-ex-info-table dd a {
  color: var(--title-color);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/**
 * [작가] 정보 테이블 인라인 (기간·장소와 동일 톤)
 * - 작성/수정일: 2026-08-09
 */
.an-ex-artist-inline {
  word-break: keep-all;
}

.an-ex-artist-inline__sep {
  color: var(--muted-color);
  font-weight: 400;
}

.an-ex-detail__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.an-ex-detail__report {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.an-ex-detail__icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-ex-detail__icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--title-color);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}

.an-ex-detail__icon-btn.is-static {
  cursor: default;
}

.an-ex-detail__icon-btn:hover {
  background: transparent;
  color: var(--muted-color);
}

.an-ex-detail__icon-btn[aria-pressed="true"] {
  background: transparent;
  color: var(--title-color);
}

.an-ex-detail__icon-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--white-color);
  border: 1px solid var(--border-color);
  color: var(--title-color);
  font-size: var(--fs-micro, 10px);
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.an-ex-detail__sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: var(--fs-h6, 18px);
  font-weight: 600;
  color: var(--title-color);
}

.an-ex-detail__content,
.an-ex-detail__aside,
.an-ex-detail__map {
  margin-bottom: var(--space-40);
}

/* [WYSIWYG] gurumi 본문(.g5-gurumi-view) 타이포는 에디터 CSS 전담 — 스킨은 제외 — 작성/수정일: 2026-08-12 */
.an-ex-detail__body:not(.g5-gurumi-view) {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-color);
  word-break: keep-all;
}

.an-ex-detail__body:not(.g5-gurumi-view) :where(p) {
  margin-block: 0.2em;
}

.an-ex-detail__body:not(.g5-gurumi-view) :where(h1) {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-block: 0.55em 0.25em;
}

.an-ex-detail__body:not(.g5-gurumi-view) :where(h2) {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-block: 0.5em 0.2em;
}

.an-ex-detail__body:not(.g5-gurumi-view) :where(h3) {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin-block: 0.45em 0.2em;
}

.an-ex-detail__body:not(.g5-gurumi-view) a:not(.editor-link-preview__card) {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.an-ex-detail__body img,
.an-ex-detail__body .editor-image {
  max-width: 100%;
  height: auto;
}

/* [이미지 정렬] gurumi data-align · view_image 래퍼 대응 — 작성/수정일: 2026-08-09 */
.an-ex-detail__body .editor-image[data-align="left"],
.an-ex-detail__body img[data-align="left"] {
  display: block;
  margin-inline: 0 auto 0 0;
}

.an-ex-detail__body .editor-image[data-align="center"],
.an-ex-detail__body img[data-align="center"] {
  display: block;
  margin-inline: auto;
}

.an-ex-detail__body .editor-image[data-align="right"],
.an-ex-detail__body img[data-align="right"] {
  display: block;
  margin-inline: 0 0 0 auto;
}

.an-ex-detail__body a.view_image:has(img[data-align="left"]),
.an-ex-detail__body a.view_image:has(img[data-align="center"]),
.an-ex-detail__body a.view_image:has(img[data-align="right"]) {
  display: block;
  max-width: 100%;
  width: fit-content;
}

.an-ex-detail__body a.view_image:has(img[data-align="center"]) {
  margin-inline: auto;
}

.an-ex-detail__body a.view_image:has(img[data-align="right"]) {
  margin-inline: 0 0 0 auto;
}

.an-ex-detail__body a.view_image:has(img[data-align="left"]) {
  margin-inline: 0 auto 0 0;
}

.an-ex-detail__body .editor-link-preview {
  display: block;
  width: min(100%, 28rem);
  margin-block: 0.85em;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--white-color);
  box-sizing: border-box;
}

.an-ex-detail__body .editor-link-preview[data-align="center"] {
  margin-inline: auto;
}

.an-ex-detail__body .editor-link-preview[data-align="right"] {
  margin-inline: auto 0;
}

.an-ex-detail__body .editor-link-preview__card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.an-ex-detail__body .editor-link-preview__image {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
}

.an-ex-detail__body .editor-link-preview__body {
  padding: 0.75rem 0.9rem 0.85rem;
}

.an-ex-detail__body .editor-link-preview__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.an-ex-detail__body .editor-link-preview__desc {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted-color);
}

.an-ex-detail__body .editor-link-preview__domain {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted-color);
}

.an-ex-detail__signature {
  margin-top: 20px;
  color: var(--muted-color);
  font-size: var(--fs-caption);
}

.an-ex-resource-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.an-ex-resource-list li + li {
  border-top: 1px solid var(--border-color);
}

.an-ex-resource-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: var(--title-color);
  text-decoration: none;
  transition: background var(--duration-base);
}

.an-ex-resource-list a:hover {
  background: var(--section-bg-color);
}

.an-ex-resource-list__main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.an-ex-resource-list__main strong {
  font-size: var(--fs-label);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ex-resource-list__main em {
  font-style: normal;
  font-size: var(--fs-caption);
  color: var(--muted-color);
}

.an-ex-detail__map-frame {
  position: relative;
  min-height: 300px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--section-bg-color);
  overflow: hidden;
}

.an-ex-detail__map-canvas,
.an-ex-detail__map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.an-ex-detail__map-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: min(340px, 78vw);
  width: min(340px, 78vw);
  padding: 16px 18px;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  color: var(--title-color);
}

/**
 * [카카오맵 오버레이]
 * - 역할: 카카오맵은 다크테마 미지원 → 사이트 다크와 무관하게 라이트 카드 고정
 * - 작성/수정일: 2026-08-08
 */
html.dark .an-ex-detail__map-card,
body.dark .an-ex-detail__map-card {
  background: var(--white-color, var(--white-color, #fff));
  border-color: var(--border-color, var(--border-color, #eee));
  color: var(--title-color, #171717);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

html.dark .an-ex-detail__map-card strong,
body.dark .an-ex-detail__map-card strong {
  color: var(--title-color, #171717);
}

html.dark .an-ex-detail__map-card p,
body.dark .an-ex-detail__map-card p {
  color: var(--text-color, #595959);
}

html.dark .an-ex-detail__map-thumb,
body.dark .an-ex-detail__map-thumb {
  border-color: var(--border-color, var(--border-color, #eee));
}

html.dark .an-ex-detail__map-thumb.is-empty,
body.dark .an-ex-detail__map-thumb.is-empty {
  background: var(--section-bg-color, #f9f9f9);
}

html.dark .an-ex-detail__map-link,
body.dark .an-ex-detail__map-link {
  background: var(--title-color, #171717);
  color: var(--on-dark, var(--on-dark, #fff));
}

/* OSM 폴백: 프레임 기준 고정 카드 */
.an-ex-detail__map-frame > .an-ex-detail__map-card {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: calc(100% - 32px);
  max-width: calc(100% - 32px);
}

/* [커스텀오버레이] 카카오가 좌표 기준 이동 · 핀 가림 방지 — 작성/수정일: 2026-08-09 */
.an-ex-detail__map-card.is-overlay {
  position: relative;
  top: auto;
  left: auto;
  /* 기본 마커(~40px) + 간격 — 카드가 핀을 가리지 않음 */
  transform: translateY(-52px);
  width: min(340px, 78vw);
  max-width: min(340px, 78vw);
  margin: 0;
  pointer-events: auto;
}

.an-ex-detail__map-thumb {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border-color);
}

.an-ex-detail__map-thumb.is-empty {
  display: block;
  background: var(--section-bg-color);
}

/* [커스텀오버레이]
 * - 역할: 장소명·주소 줄바꿈 (flex 자식 min-width로 넘침 방지)
 * - 작성/수정일: 2026-08-07
 */
.an-ex-detail__map-card > div {
  min-width: 0;
  flex: 1 1 auto;
}

.an-ex-detail__map-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: keep-all;
  white-space: normal;
}

.an-ex-detail__map-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-color);
  overflow-wrap: anywhere;
  word-break: keep-all;
  white-space: normal;
}

.an-ex-detail__map-link {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: auto;
  z-index: 8;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 5px;
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

/* [지도 컨트롤] 우하단 유지 — 작성/수정일: 2026-08-09 */
.an-ex-detail__map-frame .an-ex-detail__map-ctrls {
  bottom: 12px;
  right: 12px;
}

.an-ex-detail__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: var(--space-40);
}

.an-ex-detail__nav-item {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  text-decoration: none;
  color: var(--title-color);
  min-width: 0;
}

.an-ex-detail__nav-item span {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--muted-color);
}

.an-ex-detail__nav-item strong {
  font-size: var(--fs-label);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-ex-detail__nav-item--next {
  text-align: right;
}

.an-ex-detail__nav-item.is-empty {
  visibility: hidden;
}

.an-ex-detail__comments {
  padding-top: var(--space-20);
  border-top: 1px solid var(--border-color);
}

@media (max-width: 767.98px) {
  .an-ex-detail__panel {
    grid-template-columns: 1fr;
    padding: 20px 0;
    gap: 20px;
  }

  .an-ex-detail__nav {
    grid-template-columns: 1fr;
  }

  .an-ex-detail__nav-item--next {
    text-align: left;
  }

  .an-ex-detail__map-frame > .an-ex-detail__map-card {
    top: 16px;
  }

  /* [전시 목록 툴바]
   * - 역할: 모바일에서 1행(필터·목록/지도·보기) + 2행(정렬 전폭)
   * - 작성/수정일: 2026-08-20
   */
  .an-ex-main__bar {
    align-items: stretch;
    gap: 10px;
  }

  .an-ex-main__count {
    width: 100%;
  }

  .an-ex-main__tools {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "filter mode view"
      "sort sort sort";
    gap: 8px;
    width: 100%;
  }

  .an-ex-main__filter-btn {
    grid-area: filter;
    height: 40px;
    padding: 0 10px;
  }

  .an-ex-main__tools .an-ex-mode-toggle {
    grid-area: mode;
    display: flex;
    width: 100%;
    min-width: 0;
  }

  .an-ex-main__tools .an-ex-mode-toggle__btn {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .an-ex-main__tools .an-ex-mode-toggle__rest {
    display: none;
  }

  .an-ex-view-toggle {
    grid-area: view;
    height: 40px;
  }

  .an-ex-view-toggle button {
    width: 40px;
    height: 40px;
  }

  .an-ex-main__tools .an-ex-sort {
    grid-area: sort;
    display: block;
    width: 100%;
    min-width: 0;
    flex-shrink: 1;
  }

  .an-ex-main__tools .an-sort__toggle {
    width: 100%;
    min-height: 40px;
    height: 40px;
    justify-content: space-between;
    box-sizing: border-box;
  }
}

/* Responsive */
@media (max-width: 1199.98px) {
  .an-ex-list__layout {
    grid-template-columns: 1fr;
  }

  .an-ex-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-modal);
    width: min(360px, 88vw);
    /* [필터 드로어] 큰 뷰포트(100%/dvh) 대신 보이는 높이 — 작성/수정일: 2026-08-20 */
    height: 100svh;
    max-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px calc(48px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: var(--white-color);
    transform: translateX(-105%);
    transition: transform var(--duration-menu) var(--ease-menu);
    box-shadow: var(--shadow-lg);
  }

  .an-ex-list.is-filter-open .an-ex-sidebar {
    transform: translateX(0);
  }

  .an-ex-sidebar__head {
    display: flex;
  }

  .an-ex-main__filter-btn {
    display: inline-flex;
    margin-right: 0;
  }

  /* [모바일 툴바] 한 줄 nowrap이 넘치지 않게 줄바꿈 — 작성/수정일: 2026-08-20 */
  .an-ex-main__tools {
    flex: 1 1 100%;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .an-ex-sidebar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-modal) - 1);
    border: 0;
    background: rgba(23, 23, 23, 0.45);
  }

  .an-ex-sidebar__backdrop[hidden] {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .an-ex-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-25) var(--space-20);
  }

  .an-ex-grid.is-list {
    grid-template-columns: 1fr;
  }

  /* [전시 목록 툴바] 좁은 화면에서 '으로 보기' 생략 — 작성/수정일: 2026-08-20 */
  .an-ex-main__tools .an-ex-mode-toggle__rest {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .an-ex-list__title {
    font-size: var(--fs-h4);
  }

  .an-ex-grid {
    grid-template-columns: 1fr, 1fr;
  }

  /* [리스트형]
   * - 역할: 좁은 화면에서도 썸네일+메타 가로 배치 유지 (세로 스택 금지)
   * - 작성/수정일: 2026-08-07
   */
  .an-ex-grid.is-list .an-ex-card {
    grid-template-columns: 180px minmax(0, 1fr) auto;
    gap: 0 12px;
    align-items: stretch;
  }

  .an-ex-grid.is-list .an-ex-card__thumb {
    aspect-ratio: var(--ex-poster-ratio, 480 / 679);
    border-radius: var(--radius-sm);
  }

  .an-ex-grid.is-list .an-ex-card__body {
    padding: 2px 0 2px 0;
    justify-content: center;
  }

  .an-ex-grid.is-list .an-ex-card__title {
    margin-bottom: 8px;
  }

  .an-ex-grid.is-list .an-ex-card__facts {
    gap: 4px;
  }

  .an-ex-grid.is-list .an-ex-card__stats {
    margin-top: 8px;
  }

  .an-ex-grid.is-list .an-ex-status {
    top: 8px;
    left: 8px;
    padding: 5px 8px;
    font-size: var(--fs-micro, 10px);
  }

  .an-ex-main__bar {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
 * 전시 작성 (디자인 시스템 + gurumi)
 * 작성/수정일: 2026-08-07
 * -------------------------------------------------------------------------- */
.an-ex-write__intro {
  margin-bottom: var(--space-40);
}

.an-ex-write__title {
  margin: 0 0 var(--space-10);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: var(--letter-tight);
  color: var(--title-color);
}

.an-ex-write__desc {
  margin: 0;
  max-width: 640px;
  font-size: var(--fs-body);
  color: var(--text-color);
  line-height: 1.7;
}

/* [전시 작성] 상세와 동일하게 an-container 전폭 사용 — 작성/수정일: 2026-08-09 */
.an-ex-write__form {
  max-width: none;
  width: 100%;
}

.an-ex-write__panel {
  margin-bottom: var(--space-40);
  padding-bottom: var(--space-40);
  border-bottom: 1px solid var(--border-color);
}

.an-ex-write__panel:has(+ .an-ex-write__actions) {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.an-ex-write__panel-title {
  margin: 0 0 var(--an-ex-title-gap);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--title-color);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/**
 * [전시 작성] 패널 필드 간격 통일
 * - 역할: 전시명·장르·태그 등 섹션이 한 덩어리로 붙지 않게 분리. 제목 하단 여백은 --an-ex-title-gap 하나로 통일
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__panel {
  --an-ex-field-gap: var(--space-10);
  --an-ex-title-gap: var(--space-15);
}

.an-ex-write__panel > * + * {
  margin-top: var(--an-ex-field-gap);
}

.an-ex-write__panel > .an-ex-write__panel-title + * {
  margin-top: 0;
}

/* 전시명·장르·태그·옵션·동의 — 섹션 간격 25px */
.an-ex-write__panel > .an-ex-write__options,
.an-ex-write__panel > .an-ex-write__subject,
.an-ex-write__panel > .form-inner.an-ex-write__subject,
.an-ex-write__panel > .an-ex-write__genre,
.an-ex-write__panel > .an-ex-write__tags,
.an-ex-write__panel > .an-ex-write__consent {
  margin-top: var(--space-25);
  padding-top: 0;
}

/* 라벨–입력 간격 (form-inner / 커스텀 필드 공통) */
.an-ex-write__panel .form-inner > label,
.an-ex-write__options-label,
.an-ex-write__genre-label,
.an-ex-write__tags-label,
.an-ex-write__addr-label {
  display: block;
  margin: 0 0 var(--an-ex-title-gap);
  color: var(--title-color);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.5;
}

/**
 * [전시장 검색]
 * - 역할: 전시장명 입력과 trailing 검색 버튼을 한 칸으로 묶음
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__venue-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  padding: 4px 4px 4px 0;
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.an-ex-write__venue-field:focus-within {
  border-color: var(--primary-color);
}
.an-ex-write__venue-field input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--title-color);
  font-size: var(--fs-label);
  font-weight: 500;
}
.an-ex-write .form-inner .an-ex-write__venue-field input:focus {
  border-color: transparent;
}
.an-ex-write__venue-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
  color: var(--title-color);
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.an-ex-write__venue-search:hover {
  border-color: var(--title-color);
}

/**
 * [작가 추가]
 * - 역할: 입력(+추가)과 작가검색 버튼을 한 줄로, 안내는 알림 박스
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__artist-row {
  display: block;
  max-width: none;
  width: 100%;
}
.an-ex-write__artist-field {
  width: 100%;
}
.an-ex-write__artist-field [data-an-ex-artist-search],
.an-ex-write__artist-field [data-an-ex-artist-add] {
  flex: none;
}
/**
 * [전시 작성 안내]
 * - 역할: 왼쪽 강조 줄 알림 박스 (작가·첨부·캡챠 공통)
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__note,
.an-ex-write__artist-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: none;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--title-color);
  border-radius: 10px;
  background: var(--section-bg-color);
  color: var(--title-color);
  font-size: var(--fs-caption);
  font-weight: 500;
  line-height: 1.55;
  box-sizing: border-box;
}
.an-ex-write__note i,
.an-ex-write__artist-note i {
  flex: none;
  margin-top: 1px;
  font-size: var(--fs-label, 14px);
}
.an-ex-write__note span,
.an-ex-write__artist-note span {
  min-width: 0;
}
.an-ex-write__artist-note {
  margin: 12px 0 0;
}
.an-ex-write__artists script {
  display: none;
}
.an-ex-at-modal__label {
  margin: 4px 0 0;
  color: var(--muted-color);
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.an-ex-write__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--an-ex-field-gap, var(--space-25));
  width: 100%;
}

/* [전시 일정] 달력 전용 입력 · 아이콘 — 작성/수정일: 2026-08-09 */
.an-ex-write__date-field {
  position: relative;
}

.an-ex-write__date-field input[data-an-ex-date] {
  width: 100%;
  padding-right: 44px;
  cursor: pointer;
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.an-ex-write__date-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  color: var(--muted-color, #8e8e93);
  pointer-events: auto;
  cursor: pointer;
  line-height: 1;
}

.an-ex-write__date-field:hover .an-ex-write__date-icon,
.an-ex-write__date-field:focus-within .an-ex-write__date-icon {
  color: var(--title-color, #171717);
}

.an-ex-write__grid .form-inner {
  margin-top: 0;
}

.an-ex-write__options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.an-ex-write__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.an-ex-write__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-color);
  font-size: var(--fs-label);
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.an-ex-write__check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--title-color);
  cursor: pointer;
}

/* subject 간격은 패널 섹션 규칙에서 처리 */

.an-ex-write__content-label {
  display: block;
  margin-bottom: var(--an-ex-title-gap);
  color: var(--title-color);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.5;
}

.an-ex-write abbr[title="필수"] {
  color: var(--danger-color, #b91c1c);
  font-style: normal;
  text-decoration: none;
}

.an-ex-write__req-note {
  font-weight: 500;
  color: var(--muted-color);
}

.an-ex-write__intro-count {
  margin: 8px 0 0;
  padding: 0;
  text-align: right;
  font-size: var(--fs-caption, 12px);
  line-height: 1.4;
  color: #737373;
  font-variant-numeric: tabular-nums;
}

.an-ex-write__intro-count.is-short {
  color: #a3a3a3;
}

.an-ex-write__intro-count.is-ok {
  color: var(--title-color, #171717);
}

.an-ex-write__editor {
  width: 100%;
}

.an-ex-write__editor .g5-gurumi-wrap {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
  /* sticky 툴바가 뷰포트 기준으로 동작하도록 */
  overflow: visible;
}

.an-ex-write__editor .g5-gurumi-toolbar {
  position: sticky;
  top: var(--an-editor-toolbar-sticky-top, 56px);
  z-index: 45;
  background: var(--white-color);
  border-bottom: 1px solid var(--border-color);
}

/* form-inner 규칙이 에디터에 닿지 않도록 — 툴바/가가 메뉴 버튼 패딩은 유지 */
.an-ex-write__editor
  .g5-gurumi-wrap
  input:not([type="button"]):not([type="submit"]),
.an-ex-write__editor .g5-gurumi-wrap textarea,
.an-ex-write__editor .g5-gurumi-wrap select {
  width: auto;
  height: auto;
  min-height: 0;
  box-shadow: none;
}

/* [가가 드롭다운] 행 간격 — 작성/수정일: 2026-08-07 */
.an-ex-write__editor .g5-gurumi-block-dropdown {
  padding: 0.35rem 0;
}

.an-ex-write__editor .g5-gurumi-block-item {
  min-height: 2.375rem;
  padding: 0.55rem 0.875rem;
  gap: 0.5rem;
  line-height: 1.35;
}

.an-ex-write__editor .g5-gurumi-block-divider {
  margin: 0.3rem 0;
}

/* 초기화 후에만 숨김 — 실패 시 textarea 폴백 노출 */
.an-ex-write__editor textarea.g5-gurumi-source {
  display: none !important;
}

.an-ex-write__hint {
  margin: 8px 0 0;
  color: var(--muted-color);
  font-size: var(--fs-caption);
  line-height: 1.45;
}

.an-ex-write__hint-inline {
  color: var(--muted-color);
  font-weight: 400;
}

.an-ex-write__file + .an-ex-write__file {
  margin-top: var(--space-20);
}

.an-ex-write__file-input {
  padding: 12px 16px !important;
  height: auto !important;
  line-height: 1.4;
}

.an-ex-write__file-desc {
  margin-top: 10px;
}

.an-ex-write__file-del {
  margin-top: 12px;
}

.an-ex-write__captcha {
  max-width: none;
}

/**
 * [전시 첨부]
 * - 역할: 중복 제목 숨김 · 드롭존을 섹션 배경·점선으로 강조
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__files .an-fu__title {
  display: none;
}
.an-ex-write__files .an-fu__drop {
  min-height: 132px;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px;
  border: 1.5px dashed var(--title-color);
  border-radius: 12px;
  background: var(--section-bg-color);
}
.an-ex-write__files .an-fu__drop:hover,
.an-ex-write__files .an-fu__drop:focus-visible,
.an-ex-write__files .an-fu__drop.is-dragover {
  background: var(--white-color);
  border-color: var(--title-color);
}
.an-ex-write__files .an-fu__drop-icon {
  font-size: var(--fs-lead, 28px);
  color: var(--title-color);
}
.an-ex-write__files .an-fu__drop-text {
  font-size: var(--fs-label);
}
.an-ex-write__files .an-fu__drop-choose {
  color: var(--title-color);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--title-color);
}

.an-ex-write__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "start end"
    "hint hint";
  align-items: center;
  gap: 12px 16px;
  margin-top: var(--space-40, 40px);
  padding: 18px 0 8px;
  border-top: 1px solid var(--border-color);
  position: sticky;
  bottom: 0;
  z-index: 12;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    var(--white-color, #fff) 28%
  );
  backdrop-filter: blur(8px);
}

.an-ex-write__actions-start {
  grid-area: start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.an-ex-write__actions-end {
  grid-area: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.an-ex-write__actions .primary-btn1,
.an-ex-write__actions .secondary-btn {
  min-height: 44px;
  min-width: 108px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
}

/**
 * [전시 작성] 임시저장 안내
 * - 역할: 하단 힌트를 왼쪽 강조 줄 알림으로 표시
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__actions-hint {
  grid-area: hint;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--title-color);
  border-radius: 10px;
  background: var(--section-bg-color);
  color: var(--title-color);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  box-sizing: border-box;
}

.an-ex-write__actions-hint i {
  flex: none;
  margin-top: 1px;
  font-size: var(--fs-label, 14px);
}

@media (max-width: 767.98px) {
  .an-ex-write__grid {
    grid-template-columns: 1fr;
  }

  .an-ex-write__actions {
    grid-template-columns: 1fr;
    grid-template-areas:
      "end"
      "start"
      "hint";
    gap: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .an-ex-write__actions-start,
  .an-ex-write__actions-end {
    flex-direction: column;
    align-items: stretch;
  }

  .an-ex-write__actions .primary-btn1,
  .an-ex-write__actions .secondary-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    min-height: 48px;
  }

  .an-ex-write__actions-hint {
    justify-self: stretch;
    width: 100%;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
 * 전시 스텝 작성 · 보드 선택 · 포스터 · 지도 · 칩
 * 작성/수정일: 2026-08-09
 * -------------------------------------------------------------------------- */
.an-ex-write__board-badge {
  display: inline-block;
  margin: 0 0 var(--space-20);
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--muted-color);
}

.an-ex-write__steps {
  --an-ex-step-gap: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--an-ex-step-gap);
  position: relative;
  margin: 0 0 36px;
  padding: 8px 0 28px;
  list-style: none;
  border-bottom: 1px solid var(--border-color);
}

/* [위저드 진행선] — 작성/수정일: 2026-08-10 */
.an-ex-write__steps::before {
  content: "";
  position: absolute;
  left: calc(100% / 12);
  right: calc(100% / 12);
  top: 26px;
  height: 1px;
  background: var(--border-color);
  z-index: 0;
  pointer-events: none;
}

.an-ex-write__steps::after {
  content: "";
  position: absolute;
  left: calc(100% / 12);
  top: 26px;
  height: 1px;
  width: 0;
  background: var(--title-color);
  z-index: 0;
  pointer-events: none;
  transition: width 0.35s ease;
}

.an-ex-write[data-step="1"] .an-ex-write__steps::after {
  width: 0;
}
.an-ex-write[data-step="2"] .an-ex-write__steps::after {
  width: calc(100% / 6);
}
.an-ex-write[data-step="3"] .an-ex-write__steps::after {
  width: calc(100% / 6 * 2);
}
.an-ex-write[data-step="4"] .an-ex-write__steps::after {
  width: calc(100% / 6 * 3);
}
.an-ex-write[data-step="5"] .an-ex-write__steps::after {
  width: calc(100% / 6 * 4);
}
.an-ex-write[data-step="6"] .an-ex-write__steps::after {
  width: calc(100% / 6 * 5);
}

.an-ex-write__steps li {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-ex-write__step {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 112px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-color);
  font: inherit;
  font-size: var(--fs-small);
  cursor: pointer;
  transition: color 0.2s ease;
}

.an-ex-write__step-num,
.an-ex-write__step > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e0e0de;
  background: var(--white-color);
  color: var(--muted-color);
  font-size: var(--fs-sm, 13px);
  font-weight: 650;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 6px var(--white-color, #fff);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.an-ex-write__step-label {
  font-size: var(--fs-caption, 12px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.an-ex-write__step:hover .an-ex-write__step-num,
.an-ex-write__step:hover > span:first-child {
  border-color: #bdbdbb;
  color: var(--title-color);
}

.an-ex-write__step.is-done .an-ex-write__step-num,
.an-ex-write__step.is-done > span:first-child {
  border-color: var(--title-color);
  background: var(--title-color);
  color: var(--white-color);
}

.an-ex-write__step.is-done .an-ex-write__step-label {
  color: var(--title-color);
}

.an-ex-write__step.is-active {
  color: var(--title-color);
}

.an-ex-write__step.is-active .an-ex-write__step-num,
.an-ex-write__step.is-active > span:first-child {
  border-color: var(--title-color);
  background: var(--title-color);
  color: var(--white-color);
  transform: scale(1.06);
  box-shadow:
    0 0 0 6px var(--white-color, #fff),
    0 8px 18px rgba(var(--title-color-opc, 23, 23, 23), 0.12);
}

.an-ex-write__step.is-active .an-ex-write__step-label {
  font-weight: 700;
  color: var(--title-color);
}

.an-ex-write__draft-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid #ebebe8;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(23, 23, 23, 0.03), transparent 42%), #fafaf8;
  font-size: var(--fs-small);
  color: var(--title-color);
  line-height: 1.5;
}

.an-ex-write__draft-banner[hidden] {
  display: none !important;
}

.an-ex-write__draft-banner-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.an-ex-write__draft-banner-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--title-color);
  color: var(--white-color);
  font-size: var(--fs-micro, 10px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.an-ex-write__draft-banner-text {
  font-size: var(--fs-sm, 13px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.an-ex-write__draft-clear {
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--border-color, #ddd);
  background: var(--white-color);
  color: var(--title-color);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.an-ex-write__draft-clear:hover {
  background: #f5f5f3;
  border-color: var(--divider-color, #cfcfcf);
}

/* [전시 작성 포스터 카드]
 * - 역할: 풀블리드 미리보기 + 하단 액션바 중심 구성
 * - 작성/수정일: 2026-08-09
 */
.an-ex-write__poster {
  display: flex;
  justify-content: center;
  margin: 0 0 var(--space-55);
}

.an-ex-write__poster-card {
  display: flex;
  flex-direction: column;
  width: min(380px, 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--white-color);
  box-shadow: 0 10px 28px rgba(var(--title-color-opc), 0.06);
  overflow: hidden;
}

.an-ex-write__poster-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--letter-tight);
  color: var(--title-color);
  background: var(--section-bg-color);
}

.an-ex-write__poster-kicker span {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--muted-color);
}

.an-ex-write__poster-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ex-poster-ratio, 480 / 679);
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(var(--title-color-opc), 0.02),
      transparent 40%
    ),
    var(--section-bg-color);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.an-ex-write__poster-frame:focus-visible {
  outline: 2px solid var(--title-color);
  outline-offset: -2px;
}

.an-ex-write__poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-base, 0.25s) ease;
}

.an-ex-write__poster-frame.has-image:hover img,
.an-ex-write__poster-frame.has-image:focus-visible img {
  transform: scale(1.03);
}

.an-ex-write__poster-frame img[hidden] {
  display: none !important;
}

.an-ex-write__poster-empty {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--divider-color);
  border-radius: var(--radius-sm);
  color: var(--muted-color);
  font-size: var(--fs-label);
  pointer-events: none;
  transition:
    border-color var(--duration-base, 0.25s) ease,
    background-color var(--duration-base, 0.25s) ease;
}

.an-ex-write__poster-frame:hover .an-ex-write__poster-empty,
.an-ex-write__poster-frame:focus-visible .an-ex-write__poster-empty,
.an-ex-write__poster-frame.is-dragover .an-ex-write__poster-empty,
.an-ex-write__poster-card.is-dragover .an-ex-write__poster-empty {
  border-color: var(--title-color);
  background: rgba(var(--title-color-opc), 0.02);
}

.an-ex-write__poster-card.is-dragover,
.an-ex-write__poster-frame.is-dragover {
  outline: 2px solid var(--title-color);
  outline-offset: -2px;
}

.an-ex-write__poster-card.is-dragover .an-ex-write__poster-hover {
  opacity: 1;
  background: rgba(var(--title-color-opc), 0.42);
}

.an-ex-write__poster-empty[hidden] {
  display: none !important;
}

.an-ex-write__poster-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--chip-color);
  color: var(--title-color);
  font-size: 1.5rem;
}

.an-ex-write__poster-empty strong {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--title-color);
  letter-spacing: var(--letter-tight);
}

.an-ex-write__poster-empty-hint {
  color: var(--muted-color);
  font-size: var(--fs-caption);
}

.an-ex-write__poster-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(var(--title-color-opc), 0.48);
  color: var(--white-color);
  font-size: var(--fs-label);
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--duration-base, 0.25s) ease;
  pointer-events: none;
}

.an-ex-write__poster-hover i {
  font-size: 1.35rem;
}

.an-ex-write__poster-frame.has-image:hover .an-ex-write__poster-hover,
.an-ex-write__poster-frame.has-image:focus-visible .an-ex-write__poster-hover {
  opacity: 1;
}

.an-ex-write__poster-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border-color);
  background: var(--white-color);
}

.an-ex-write__poster-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.an-ex-write__poster-pick,
.an-ex-write__poster-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  cursor: pointer;
}

.an-ex-write__poster-pick i,
.an-ex-write__poster-clear i {
  font-size: 1rem;
  line-height: 1;
}

.an-ex-write__poster-del {
  margin: 0;
  font-size: var(--fs-caption);
}

.an-ex-write__poster-hint {
  margin: 0;
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--muted-color);
  line-height: 1.5;
}

/* [전시 포스터] 즉시 업로드 중 상태 — 작성/수정일: 2026-08-15 */
.an-ex-write__poster-status {
  margin: 0;
  text-align: center;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--title-color);
}

.an-ex-write__poster-status[hidden] {
  display: none !important;
}

.an-ex-write__poster-card.is-uploading .an-ex-write__poster-pick,
.an-ex-write__poster-card.is-uploading .an-ex-write__poster-frame {
  pointer-events: none;
  opacity: 0.72;
}

@media (max-width: 767.98px) {
  .an-ex-write__poster-card {
    width: min(100%, 340px);
  }

  .an-ex-write__poster-pick,
  .an-ex-write__poster-clear {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }
}

.an-ex-write__tags {
  margin: 0;
}

/* 입력 전: form-inner input과 동일 / 칩 있을 때: 칩 위 + 입력 아래 */
.an-ex-write__tags-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
  transition: border-color var(--duration-base);
}

.an-ex-write__tags-box.has-chips {
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 50px;
  gap: 10px;
  padding: 12px 20px;
}

.an-ex-write__tags-box:focus-within {
  border-color: var(--title-color);
}

.an-ex-write__tags-chips {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  min-height: 0;
}

.an-ex-write__tags-box.has-chips .an-ex-write__tags-chips {
  display: flex;
  width: 100%;
}

.an-ex-write__tags-input {
  width: 100%;
  height: 100%;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.5;
  color: var(--title-color);
}

.an-ex-write__tags-box.has-chips .an-ex-write__tags-input {
  height: auto;
  flex: none;
}

.an-ex-write__tags-input::placeholder {
  color: var(--muted-color);
  font-weight: 400;
}

.an-ex-write__tags-input:focus {
  outline: none;
}

/**
 * [해시태그] 전시소개 하단 — 칩/라벨 없이 #태그 볼드
 * - 작성/수정일: 2026-08-09
 */
.an-ex-detail__tags {
  margin: var(--space-25) 0 0;
  padding: 0;
  font-size: var(--fs-body);
  line-height: 1.7;
  word-break: keep-all;
  color: var(--title-color);
}

.an-ex-detail__tag {
  font-weight: 700;
  color: inherit;
}

.an-ex-write__genre {
  margin: 0;
}

.an-ex-write__genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/**
 * [전시 작성] 서브 제목
 * - 역할: 첨부·캡챠 등 h3 하단 여백을 패널 제목과 동일하게 맞춤. 섹션 간 간격은 상단만 담당
 * - 작성/수정일: 2026-08-13
 */
.an-ex-write__sub-title {
  margin: 0 0 var(--an-ex-title-gap);
  font-size: var(--fs-h6);
  color: var(--title-color);
}

.an-ex-write__panel > .an-ex-write__sub-title,
.an-ex-write__panel > .an-ex-write__captcha {
  margin-top: var(--space-30);
}

.an-ex-write__panel > .an-ex-write__sub-title + * {
  margin-top: 0;
}

.an-ex-write__captcha .an-ex-write__sub-title {
  margin-top: 0;
}

/**
 * [전시 작성] 주소 블록
 * - 역할: 주소(제목) → [우편번호|검색] → [주소|상세주소]
 * - 작성/수정일: 2026-08-09
 */
.an-ex-write__addr {
  width: 100%;
}

/* addr-label 스타일은 패널 공통 라벨 규칙 사용 */

.an-ex-write__addr-row {
  display: grid;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
}

.an-ex-write__addr-row + .an-ex-write__addr-row {
  margin-top: 12px;
}

/* [전시 작성] PC: 우편번호 폭 축소 · 검색 버튼 옆 배치 — 작성/수정일: 2026-08-09 */
.an-ex-write__addr-row--zip {
  grid-template-columns: minmax(100px, 160px) auto;
  justify-content: start;
}

.an-ex-write__addr-row--detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.an-ex-write__addr-row input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 10px 20px;
  box-sizing: border-box;
  background-color: var(--white-color);
  color: var(--title-color);
  font-size: var(--fs-label);
  font-weight: 500;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--duration-base);
}

.an-ex-write__addr-row input:focus {
  border-color: var(--primary-color);
}

.an-ex-write__addr-row input::placeholder {
  color: var(--muted-color);
  font-weight: 400;
}

.an-ex-write__addr-row [data-an-ex-addr-search] {
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .an-ex-write__addr-row--zip {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .an-ex-write__addr-row--detail {
    grid-template-columns: 1fr;
  }
}

.an-ex-write__map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--section-bg-color);
}

.an-ex-write__suggest-wrap {
  position: relative;
}

.an-ex-write__suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white-color);
  max-height: 220px;
  overflow: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.an-ex-write__suggest button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: var(--text-color);
  cursor: pointer;
}

.an-ex-write__suggest button em {
  flex: none;
  font-style: normal;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--muted-color);
  letter-spacing: var(--letter-tight);
}

.an-ex-write__suggest button:hover {
  background: var(--section-bg-color);
}

.an-ex-write__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  min-height: 36px;
}

.an-ex-write__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--chip-color);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.5;
  color: var(--title-color);
}

.an-ex-write__chip.is-linked {
  border-color: var(--title-color);
  background: var(--white-color);
}

.an-ex-write__chip-mark {
  font-style: normal;
  font-size: var(--fs-micro, 10px);
  font-weight: 600;
  letter-spacing: var(--letter-tight);
  color: var(--muted-color);
}

.an-ex-write__chip button {
  border: 0;
  background: transparent;
  color: var(--muted-color);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.an-ex-write__roster-pick {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.an-ex-write__roster-pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.an-ex-write__roster-add {
  appearance: none;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--white-color);
  color: var(--title-color);
  font: inherit;
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
}

.an-ex-write__roster-add:hover,
.an-ex-write__roster-add:focus-visible {
  border-color: var(--title-color);
  background: var(--section-bg-color);
}

/* [태그 칩] 입력창과 동일 타이포 — 작성/수정일: 2026-08-09 */
.an-ex-write__chip.an-ex-write__chip--tag {
  padding: 6px 10px;
  background: var(--section-bg-color);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.5;
}

/*
 * [등록 유형 선택]
 * - 역할: 전시·공모/커뮤니티 진입 공통. 작성 화면과 같은 제목·목록. 카드/키커/호버 리프트 없음
 * - 작성/수정일: 2026-08-21
 */
.an-ex-write--pick .an-ex-write__intro {
  margin-bottom: var(--space-25, 24px);
}

.an-ex-pick {
  border-top: 1px solid var(--border-color);
}

.an-ex-pick__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
}

.an-ex-pick__row:hover,
.an-ex-pick__row:focus-visible {
  outline: none;
}

.an-ex-pick__row:hover strong,
.an-ex-pick__row:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-ex-pick__row-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.an-ex-pick__row-main strong {
  font-size: var(--fs-h6, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--title-color);
}

.an-ex-pick__row-main span {
  font-size: var(--fs-small, 14px);
  line-height: 1.5;
  color: var(--muted-color);
}

.an-ex-pick__row-go {
  flex: none;
  font-size: var(--fs-caption, 13px);
  font-weight: 600;
  color: var(--muted-color);
}

.an-ex-pick__row:hover .an-ex-pick__row-go,
.an-ex-pick__row:focus-visible .an-ex-pick__row-go {
  color: var(--title-color);
}

.an-ex-pick__back {
  margin: 28px 0 0;
}

.an-ex-pick__back a {
  color: var(--muted-color);
  font-size: var(--fs-small, 14px);
  text-decoration: none;
}

.an-ex-pick__back a:hover,
.an-ex-pick__back a:focus-visible {
  color: var(--title-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767.98px) {
  .an-ex-write__steps {
    margin: 0 0 24px;
    padding: 4px 0 20px;
  }

  .an-ex-write__steps::before,
  .an-ex-write__steps::after {
    left: calc(100% / 12);
    right: calc(100% / 12);
    top: 20px;
  }

  .an-ex-write__steps::after {
    right: auto;
  }

  .an-ex-write__step {
    max-width: none;
    gap: 8px;
  }

  .an-ex-write__step-num,
  .an-ex-write__step > span:first-child {
    width: 30px;
    height: 30px;
    font-size: var(--fs-caption, 12px);
    box-shadow: 0 0 0 4px var(--white-color, #fff);
  }

  .an-ex-write__step.is-active .an-ex-write__step-num,
  .an-ex-write__step.is-active > span:first-child {
    box-shadow:
      0 0 0 4px var(--white-color, #fff),
      0 6px 14px rgba(var(--title-color-opc, 23, 23, 23), 0.12);
  }

  .an-ex-write__step-label {
    font-size: var(--fs-micro, 10px);
    letter-spacing: -0.02em;
  }

  .an-ex-write__draft-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .an-ex-write__draft-clear {
    width: fit-content;
  }

  .an-ex-write__panel-title {
    font-size: var(--fs-icon, 22px);
  }
}
