/**
 * [컬렉션]
 * - 역할: 피커·마이페이지 보드·공개 페이지·작품 상세 버튼
 * - 작성/수정일: 2026-08-18
 */

html.an-cl-picker-open,
html.an-cl-picker-open body,
html.an-cl-create-open,
html.an-cl-create-open body,
html.an-cl-settings-open,
html.an-cl-settings-open body,
html.an-cl-peek-open,
html.an-cl-peek-open body,
html.an-cl-drawer-open,
html.an-cl-drawer-open body,
html.an-cl-target-open,
html.an-cl-target-open body,
html.an-cl-memo-open,
html.an-cl-memo-open body {
  overflow: hidden;
}

.an-aw-detail__actions [data-an-aw-collection].is-on {
  background: var(--chip-color, #f2f2f2);
  border-color: var(--title-color, #171717);
  color: var(--title-color, #171717);
}

html.dark .an-aw-detail__actions [data-an-aw-collection].is-on,
body.dark .an-aw-detail__actions [data-an-aw-collection].is-on {
  background: var(--cta-surface, #2a2a2a);
  border-color: var(--border-color, #333);
  color: var(--title-color, #f5f5f5);
}

.an-cl-picker__dialog,
.an-cl-create__dialog,
.an-cl-settings__dialog {
  max-width: 480px;
}

.an-cl-create__dialog,
.an-cl-settings__dialog {
  max-height: min(90vh, 720px);
  overflow: auto;
}

.an-cl-picker .an-modal__head,
.an-cl-create .an-modal__head,
.an-cl-settings .an-modal__head {
  margin-bottom: 12px;
}

.an-cl-picker__body {
  padding: 0;
}

.an-cl-picker__list {
  display: grid;
  gap: 2px;
  max-height: min(48vh, 360px);
  overflow: auto;
  margin: 0 0 12px;
}

.an-cl-picker__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  padding-left: calc(10px + (var(--an-cl-depth, 1) - 1) * 14px);
  border-radius: 6px;
  cursor: pointer;
  font-size: var(--fs-label, 14px);
}

.an-cl-picker__new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--title-color, #171717);
  font: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.an-cl-picker__row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.an-cl-picker__name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 500;
  color: var(--title-color, #171717);
}

.an-cl-picker__count {
  flex: none;
  font-size: var(--fs-caption, 12px);
  font-style: normal;
  color: var(--muted-color, #7c7c7c);
}

.an-cl-picker__empty {
  margin: 8px 0 16px;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-body-s, 14px);
}

.an-cl-create__form {
  padding: 0;
}

.an-cl-create .an-mp-field,
.an-cl-picker .an-mp-field,
.an-cl-settings .an-mp-field {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

.an-cl-create .an-mp-field > span,
.an-cl-picker .an-mp-field > span,
.an-cl-settings .an-mp-field > span {
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-cl-create .an-mp-field > span em,
.an-cl-picker .an-mp-field > span em,
.an-cl-settings .an-mp-field > span em {
  color: var(--danger-strong, #b42318);
  font-style: normal;
}

.an-cl-create .an-mp-field input:not([type="checkbox"]):not([type="radio"]),
.an-cl-create .an-mp-field select,
.an-cl-create .an-mp-field textarea,
.an-cl-picker .an-mp-field input:not([type="checkbox"]):not([type="radio"]),
.an-cl-picker .an-mp-field select,
.an-cl-picker .an-mp-field textarea,
.an-cl-settings .an-mp-field input:not([type="checkbox"]):not([type="radio"]),
.an-cl-settings .an-mp-field select,
.an-cl-settings .an-mp-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-md, 6px);
  font: inherit;
  color: var(--title-color, #171717);
  background: var(--white-color, #fff);
}

.an-cl-settings .an-mp-form__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.an-cl-settings .an-modal__actions [data-an-cl-delete] {
  margin-right: auto;
}

.an-cl-picker.an-modal-overlay[hidden],
.an-cl-create.an-modal-overlay[hidden],
.an-cl-settings.an-modal-overlay[hidden] {
  display: none;
}

/* [컬렉션] 모바일 햄버거를 헤더 우측으로 — 작성/수정일: 2026-08-18 */
.an-cl-shell > .an-mp-panel__head--split {
  align-items: flex-start;
}

.an-cl-shell .an-mp-panel__tools {
  margin-left: auto;
}

.an-cl-settings__form .an-mp-field {
  max-width: none;
}

.an-cl-mp__eyebrow a,
.an-mp-panel__eyebrow a {
  color: inherit;
  text-decoration: none;
}

.an-mp-panel__eyebrow a:hover {
  text-decoration: underline;
}

.an-cl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.an-cl-card {
  min-width: 0;
}

.an-cl-card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md, 6px);
  background: var(--chip-color, #f2f2f2);
}

.an-cl-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-cl-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--chip-color, #f2f2f2),
    var(--line-color, #e5e5e5)
  );
}

.an-cl-card__body {
  padding: 12px 2px 0;
}

.an-cl-card__title {
  margin: 0 0 6px;
  font-size: var(--fs-body, 15px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.an-cl-card__title a {
  color: var(--title-color, #171717);
  text-decoration: none;
}

.an-cl-card__title a:hover {
  text-decoration: underline;
}

.an-cl-card__meta {
  margin: 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

.an-cl-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--chip-color, #f2f2f2);
  color: var(--muted-color, #7c7c7c);
}

.an-cl-badge--public {
  background: var(--title-color, #171717);
  color: var(--on-dark, #fff);
}

.an-cl-badge--unlisted {
  background: var(--chip-color, #f2f2f2);
  color: var(--title-color, #171717);
}

.an-cl-mp__form {
  margin: 0 0 32px;
  max-width: 560px;
}

.an-cl-mp__vis,
.an-cl-vis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: var(--fs-label, 14px);
  color: var(--title-color, #171717);
}

.an-cl-vis legend {
  margin: 0 0 8px;
  padding: 0;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  color: var(--muted-color, #7c7c7c);
}

.an-cl-vis label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.an-cl-settings__hint {
  margin: 0 0 12px;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
}

/* [컬렉션] 커버 작품 선택 — 작성/수정일: 2026-08-18 */
.an-cl-cover-pick {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.an-cl-cover-pick legend {
  margin: 0 0 6px;
  padding: 0;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  color: var(--muted-color, #7c7c7c);
}

.an-cl-cover-pick .an-cl-settings__hint {
  margin: 0 0 10px;
}

.an-cl-cover-pick__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.an-cl-cover-pick__opt {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-color, #e5e5e5);
  border-radius: 6px;
  background: var(--chip-color, #f2f2f2);
  cursor: pointer;
}

.an-cl-cover-pick__opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.an-cl-cover-pick__opt img,
.an-cl-cover-pick__empty {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-cl-cover-pick__empty {
  background: linear-gradient(
    135deg,
    var(--chip-color, #f2f2f2),
    var(--line-color, #e5e5e5)
  );
}

.an-cl-cover-pick__auto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted-color, #7c7c7c);
}

.an-cl-cover-pick__opt.is-on,
.an-cl-cover-pick__opt:has(input:checked) {
  border-color: var(--title-color, #171717);
  box-shadow: 0 0 0 1px var(--title-color, #171717);
}

.an-cl-shell__body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.an-cl-tree {
  position: sticky;
  top: 100px;
  min-width: 0;
}

.an-cl-tree__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}

.an-cl-tree__label {
  margin: 0;
  font-size: var(--fs-xs, 11px);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-color, #7c7c7c);
}

.an-cl-tree__close {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-color, #7c7c7c);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.an-cl-tree__nav {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
}

.an-cl-tree__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  padding-left: calc(10px + (var(--an-cl-depth, 1) - 1) * 14px);
  border-radius: 6px;
  color: var(--title-color, #171717);
  text-decoration: none;
  font-size: var(--fs-label, 14px);
  line-height: 1.4;
}

.an-cl-tree__item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.an-cl-tree__item.is-current {
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.an-cl-tree__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.an-cl-tree__count {
  flex: none;
  font-size: var(--fs-caption, 12px);
  font-style: normal;
  font-weight: 400;
  color: var(--muted-color, #7c7c7c);
}

.an-cl-tree__new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  background: none;
  color: var(--title-color, #171717);
  font: inherit;
  font-size: var(--fs-label, 14px);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.an-cl-tree__new:hover {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}

.an-cl-main {
  min-width: 0;
  container-type: inline-size;
  container-name: cl-main;
}

.an-cl-main__lead {
  margin: -4px 0 16px;
  color: var(--muted-color, #7c7c7c);
  font-size: var(--fs-body-s, 14px);
  line-height: 1.55;
}

.an-cl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}

.an-cl-toolbar__left {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.an-cl-toolbar__title {
  margin: 0;
  font-size: var(--fs-h6, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--title-color, #171717);
}

.an-cl-toolbar__count {
  margin: 0;
  font-size: var(--fs-sm, 13px);
  color: var(--muted-color, #7c7c7c);
}

.an-cl-toolbar__count strong {
  color: var(--title-color, #171717);
  font-weight: 600;
}

.an-cl-toolbar__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.an-cl-toolbar__search input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  font: inherit;
  font-size: var(--fs-label, 14px);
  color: var(--title-color, #171717);
  background: var(--white-color, #fff);
  width: min(220px, 42vw);
}

.an-cl-toolbar .an-sort__toggle {
  min-height: 36px;
  border-radius: 8px;
}

.an-cl-toolbar__settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  background: var(--white-color, #fff);
  color: var(--title-color, #171717);
  font: inherit;
  font-size: var(--fs-caption, 12px);
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.an-cl-toolbar__settings:hover {
  border-color: var(--title-color, #171717);
}

.an-cl-toolbar__settings .bi {
  font-size: 14px;
  line-height: 1;
}

.an-cl-paging {
  margin: 28px 0 8px;
  display: flex;
  justify-content: center;
}

.an-cl-paging .an-pagination--ex {
  margin-top: 0;
}

.an-cl-shell.is-loading [data-an-cl-works] {
  opacity: 0.55;
  pointer-events: none;
}

.an-cl-view {
  display: inline-flex;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white-color, #fff);
}

.an-cl-view button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted-color, #888);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-body, 16px);
  line-height: 1;
}

.an-cl-view button.is-active {
  background: var(--chip-color, #ececec);
  color: var(--title-color, #171717);
}

.an-cl-shell__tree-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-color, #e5e5e5);
  border-radius: 8px;
  background: var(--white-color, #fff);
  color: var(--title-color, #171717);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--fs-h5, 20px);
  line-height: 1;
}

.an-cl-shell__tree-toggle:hover {
  background: var(--bg-soft, #f6f6f6);
}

.an-cl-drawer-backdrop {
  display: none;
}

.an-cl-work[hidden] {
  display: none !important;
}

.an-cl-mp__share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line-color, #e5e5e5);
  border-radius: 6px;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  word-break: break-all;
}

.an-cl-mp__share[hidden] {
  display: none;
}

.an-cl-mp__works-title {
  margin: 0 0 16px;
  font-size: var(--fs-h6, 18px);
  font-weight: 700;
}

.an-cl-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.an-cl-works[hidden] {
  display: none;
}

.an-cl-work {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.an-cl-work__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--section-bg-color, #f5f5f5);
}

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

.an-cl-work__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    145deg,
    var(--section-bg-color, #f5f5f5) 0%,
    var(--chip-color, #ececec) 100%
  );
}

.an-cl-work__body {
  padding: 12px 2px 4px;
  min-width: 0;
}

.an-cl-work__title {
  margin: 0;
  font-size: var(--fs-label, 14px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--title-color, #171717);
}

.an-cl-work__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.an-cl-work__artist {
  margin: 6px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--text-color, #444);
}

.an-cl-work__artist a {
  color: inherit;
  text-decoration: none;
}

.an-cl-work__artist a:hover,
.an-cl-work__title a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.an-cl-work__meta,
.an-cl-work__note {
  margin: 6px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  line-height: 1.45;
}

.an-cl-work__remove {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--title-color, #171717);
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

.an-cl-works.is-list .an-cl-work {
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: var(--radius-md, 6px);
  overflow: hidden;
}

.an-cl-works.is-list .an-cl-work__media {
  flex: 0 0 140px;
  width: 140px;
  aspect-ratio: 1 / 1;
}

.an-cl-works.is-list .an-cl-work__body {
  flex: 1;
  padding: 14px 16px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@container cl-main (min-width: 680px) {
  .an-cl-works:not(.is-list) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.an-cl-public {
  width: 100%;
  margin: 0;
  padding: 0 0 96px;
}

.an-cl-public__mast {
  display: grid;
  gap: 28px;
  margin: 0 0 48px;
}

.an-cl-public__mast.has-cover {
  gap: 24px;
}

.an-cl-public__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-color, #8a8a8a);
}

.an-cl-public__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: var(--title-color, #171717);
}

.an-cl-public__by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: var(--fs-body-s, 14px);
  color: var(--muted-color, #7c7c7c);
}

.an-cl-public__by a {
  color: var(--title-color, #171717);
  font-weight: 600;
  text-decoration: none;
}

.an-cl-public__by a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.an-cl-public__desc {
  margin: 0 0 18px;
  max-width: 42em;
  font-size: var(--fs-body, 16px);
  line-height: 1.7;
  color: var(--text-color, #444);
}

.an-cl-public__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.an-cl-public__chips li {
  padding: 5px 10px;
  border: 1px solid var(--border-color, #e5e5e5);
  border-radius: 999px;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #666);
}

.an-cl-public__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.an-cl-public__tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  background: var(--white-color, #fff);
  color: var(--title-color, #171717);
  font: inherit;
  font-size: var(--fs-caption, 12px);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.an-cl-public__tool:hover {
  border-color: var(--title-color, #171717);
}

/* [컬렉션] 공개 커버: body 폭 · 320px · 스크롤 시 배경 고정 — 작성/수정일: 2026-08-18 */
.an-cl-public__cover {
  width: 100%;
  height: 320px;
  background-color: var(--section-bg-color, #f3f3f3);
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(calc(100vw - (var(--container-pad, 12px) * 2)), calc(var(--container-max, 1320px) - (var(--container-pad, 12px) * 2))) auto;
  background-attachment: fixed;
}

.an-cl-public .an-cl-works--public {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.an-cl-public .an-cl-work__media {
  aspect-ratio: auto;
  min-height: 180px;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--section-bg-color, #f4f4f4);
}

.an-cl-public .an-cl-work__media img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}

.an-cl-public .an-cl-work__body {
  padding: 14px 0 0;
}

.an-cl-public .an-cl-work__title {
  font-size: var(--fs-body-s, 14px);
  font-weight: 550;
  letter-spacing: -0.02em;
}

.an-cl-public .an-cl-work__artist,
.an-cl-public .an-cl-work__meta {
  font-size: var(--fs-caption, 12px);
}

@media (min-width: 992px) {
  .an-cl-public .an-cl-works--public {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
  }
}

@media (max-width: 767.98px) {
  .an-cl-public {
    padding-bottom: 72px;
  }

  .an-cl-public__cover {
    background-attachment: scroll;
    background-size: 100% auto;
  }
}

.an-cl-peek {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  overflow: hidden;
  background: #0d0d0d;
  color: #f3f3f3;
}

.an-cl-peek[hidden] {
  display: none;
}

.an-cl-peek__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* [컬렉션 뷰어] 아트워크 라이트박스와 같은 줌/팬 — 작성/수정일: 2026-08-18 */
.an-cl-peek__stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 48px 64px;
  box-sizing: border-box;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.an-cl-peek__stage.is-dragging {
  cursor: grabbing;
}

.an-cl-peek__stage img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.an-cl-peek__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  padding: 56px 32px 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #141414;
}

.an-cl-peek__kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.an-cl-peek__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.an-cl-peek__artist,
.an-cl-peek__meta,
.an-cl-peek__index {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-body-s, 14px);
}

.an-cl-peek__artist a {
  color: inherit;
  text-decoration: none;
}

.an-cl-peek__artist a:hover {
  text-decoration: underline;
}

.an-cl-peek__more {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: #fff;
  font-size: var(--fs-caption, 12px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  width: fit-content;
  padding-bottom: 2px;
}

.an-cl-peek__more:hover {
  border-bottom-color: #fff;
}

.an-cl-peek__close,
.an-cl-peek__nav {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.an-cl-peek__close:hover,
.an-cl-peek__nav:hover {
  background: rgba(255, 255, 255, 0.16);
}

.an-cl-peek__close {
  top: 16px;
  right: 16px;
}

.an-cl-peek__nav--prev {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.an-cl-peek__nav--next {
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

@media (min-width: 992px) {
  .an-cl-peek__nav--next {
    right: 376px;
  }
}

.an-cl-peek__nav[hidden] {
  display: none;
}

@media (max-width: 991.98px) {
  .an-cl-peek__layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .an-cl-peek__stage {
    padding: 56px 20px 12px;
    height: 100%;
  }

  .an-cl-peek__panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 20px 28px;
    justify-content: flex-start;
  }

  .an-cl-peek__nav--prev {
    left: 8px;
  }

  .an-cl-peek__nav--next {
    right: 8px;
  }
}

html.dark .an-cl-picker__row:hover,
body.dark .an-cl-picker__row:hover,
html.dark .an-cl-tree__item:hover,
body.dark .an-cl-tree__item:hover,
html.dark .an-cl-tree__new:hover,
body.dark .an-cl-tree__new:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.dark .an-cl-tree__item.is-current,
body.dark .an-cl-tree__item.is-current {
  background: rgba(255, 255, 255, 0.1);
}

html.dark .an-cl-badge--public,
body.dark .an-cl-badge--public {
  background: var(--title-color, #f5f5f5);
  color: #171717;
}

html.dark .an-cl-view,
body.dark .an-cl-view {
  border-color: var(--border-color, #333);
  background: var(--white-color, #1a1a1a);
}

html.dark .an-cl-view button.is-active,
body.dark .an-cl-view button.is-active {
  background: var(--chip-color, #2e2e2e);
  color: var(--title-color, #f5f5f5);
}

@media (max-width: 991.98px) {
  .an-cl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .an-cl-shell__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .an-cl-shell > .an-mp-panel__head--split {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .an-cl-shell .an-mp-panel__head > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .an-cl-shell .an-mp-panel__tools {
    flex: none;
    align-items: center;
    gap: 8px;
  }

  .an-cl-shell__tree-toggle {
    display: inline-flex;
    order: 2;
  }

  .an-cl-tree__close {
    display: inline-flex;
  }

  .an-cl-tree {
    position: fixed;
    z-index: 100060;
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    width: min(86vw, 320px);
    padding: max(16px, env(safe-area-inset-top, 0px)) 18px 24px;
    background: var(--white-color, #fff);
    box-shadow: none;
    overflow: auto;
    transform: translateX(105%);
    transition: transform 0.22s ease;
  }

  .an-cl-shell.is-drawer-open .an-cl-tree {
    transform: translateX(0);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  }

  .an-cl-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: rgba(0, 0, 0, 0.35);
  }

  .an-cl-drawer-backdrop[hidden] {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .an-cl-grid,
  .an-cl-works:not(.is-list) {
    grid-template-columns: 1fr;
  }

  .an-cl-toolbar__search input {
    width: 100%;
  }

  .an-cl-toolbar__right {
    width: 100%;
  }
}

/* [컬렉션 작품 관리] 케밥·선택·드래그·일괄 바 — 작성/수정일: 2026-08-18 */
.an-cl-work {
  position: relative;
}

.an-cl-work__tools {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.an-cl-work__tools > * {
  pointer-events: auto;
}

.an-cl-work__check,
.an-cl-work__handle,
.an-cl-menu__btn {
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-color, #e5e5e5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--title-color, #171717);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.an-cl-work__check input {
  margin: 0;
  width: 16px;
  height: 16px;
}

.an-cl-work__handle {
  font-size: 16px;
  line-height: 1;
  cursor: grab;
}

.an-cl-menu {
  position: relative;
  margin-left: auto;
}

.an-cl-menu__btn {
  font-size: 16px;
}

.an-cl-menu__btn:hover,
.an-cl-menu.is-open .an-cl-menu__btn,
.an-cl-work__handle:hover,
.an-cl-work__check:hover {
  background: var(--bg-soft, #f6f6f6);
}

.an-cl-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--line-color, #e5e5e5);
  border-radius: 10px;
  background: var(--white-color, #fff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 30;
  display: grid;
  gap: 2px;
}

.an-cl-menu__panel[hidden] {
  display: none;
}

.an-cl-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--fs-label, 14px);
  cursor: pointer;
}

.an-cl-menu__item:hover {
  background: var(--bg-soft, #f6f6f6);
}

.an-cl-menu__item--danger {
  color: var(--danger-strong, #b42318);
}

.an-cl-work__memo {
  margin: 8px 0 0;
  font-size: var(--fs-caption, 12px);
  color: var(--muted-color, #7c7c7c);
  line-height: 1.45;
}

.an-cl-batch {
  position: sticky;
  bottom: 12px;
  z-index: 25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 16px;
  border: 1px solid var(--line-color, #e5e5e5);
  border-radius: 10px;
  background: var(--white-color, #fff);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.an-cl-batch[hidden] {
  display: none;
}

.an-cl-batch__count {
  margin: 0;
  margin-right: auto;
  font-size: var(--fs-label, 14px);
}

.an-cl-target__dialog,
.an-cl-memo__dialog {
  max-width: 480px;
}

.an-cl-target.an-modal-overlay[hidden],
.an-cl-memo.an-modal-overlay[hidden] {
  display: none;
}

.an-cl-target__list {
  display: grid;
  gap: 2px;
  max-height: min(48vh, 360px);
  overflow: auto;
  margin: 0 0 12px;
}

.an-cl-target__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  padding-left: calc(10px + (var(--an-cl-depth, 1) - 1) * 14px);
  border-radius: 6px;
  cursor: pointer;
  font-size: var(--fs-label, 14px);
}

.an-cl-target__row input {
  margin: 0;
  accent-color: #111;
}

.an-cl-target__row:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* [컬렉션 작품 관리] 다중 선택 행 강조 — 작성/수정일: 2026-08-18 */
.an-cl-target__row:has(input:checked) {
  background: rgba(0, 0, 0, 0.06);
}

.an-cl-target__empty {
  margin: 8px 0 16px;
  color: var(--muted-color, #7c7c7c);
}

.an-cl-works.is-list .an-cl-work__tools {
  left: auto;
  width: auto;
}

.an-cl-works.is-list .an-cl-work__check,
.an-cl-works.is-list .an-cl-work__handle,
.an-cl-works.is-list .an-cl-menu__btn {
  box-shadow: none;
}

html.dark .an-cl-work__check,
html.dark .an-cl-work__handle,
html.dark .an-cl-menu__btn,
body.dark .an-cl-work__check,
body.dark .an-cl-work__handle,
body.dark .an-cl-menu__btn,
html.dark .an-cl-menu__panel,
body.dark .an-cl-menu__panel,
html.dark .an-cl-batch,
body.dark .an-cl-batch {
  background: var(--white-color, #1a1a1a);
  border-color: var(--border-color, #333);
}

html.dark .an-cl-menu__item:hover,
body.dark .an-cl-menu__item:hover,
html.dark .an-cl-target__row:hover,
body.dark .an-cl-target__row:hover,
html.dark .an-cl-target__row:has(input:checked),
body.dark .an-cl-target__row:has(input:checked) {
  background: rgba(255, 255, 255, 0.06);
}
