/* Коллаж шапки профиля — раскладки 1–5 совпадают с .hhc__photo (homepage_hero_collage.css) */

.phc {
  --phc-ink: #1a1f1c;
  --phc-muted: #5a635c;
  --phc-line: #e4e7e2;
  --phc-paper: #ffffff;
  --phc-photo-shadow: 0 14px 36px rgba(26, 31, 28, 0.14);

  position: relative;
  background: var(--phc-paper);
  color: var(--phc-ink);
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--phc-line);
}

.phc__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(260px, 1.25fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.phc__identity {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.phc__avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.phc__avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(26, 31, 28, 0.12);
  background: #e8ece8;
  color: #334155;
  font-family: "Literata", "Iowan Old Style", Palatino, serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

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

.phc__title {
  margin: 0;
  font-family: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--phc-ink);
  min-width: 0;
}

.phc__collage {
  position: relative;
  min-height: clamp(220px, 32vw, 340px);
  height: 100%;
}

.phc__collage-set {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.phc__stain {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
}

.phc__sketch {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
  object-fit: contain;
  object-position: center;
}

.phc__collage-set--scene {
  z-index: 1;
}

.pcm__scene-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 8px;
}

.pcm__scene {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 400 / 340;
  margin: 0 auto 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  overflow: hidden;
  touch-action: none;
}

.pcm-scene__photo,
.pcm-scene__sketch {
  position: absolute;
  margin: 0;
  cursor: grab;
  touch-action: none;
}

.pcm-scene__photo {
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
  background: #d7ddd8;
}

.pcm-scene__photo img,
.pcm-scene__sketch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

img.pcm-scene__sketch {
  z-index: 0;
  height: auto;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}

.pcm-scene__sketch img {
  height: auto;
  object-fit: contain;
  object-position: center;
}

.pcm-scene__handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1a1f1c;
  cursor: nwse-resize;
}

.pcm__sketch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.pcm__sketch-btn {
  width: 52px;
  padding: 3px;
  border-radius: 8px;
  border: 1.5px solid rgba(26, 54, 115, 0.18);
  background: #fff;
  cursor: pointer;
}

.pcm__sketch-btn.is-active {
  border-color: #1a1f1c;
  box-shadow: 0 0 0 1px #1a1f1c;
}

.pcm__sketch-btn img,
.pcm__sketch-btn span {
  display: block;
  width: 100%;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
  background: #f8fafc;
}

.pcm__sketch-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.phc__collage-set--count-1 .phc__photo--1 {
  left: 22%;
  top: 16%;
  width: clamp(150px, 22vw, 220px);
  transform: rotate(-4deg);
}

.phc__photo {
  position: absolute;
  margin: 0;
  width: clamp(110px, 16vw, 168px);
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--phc-photo-shadow);
  background: #d7ddd8;
  border: 3px solid #fff;
}

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

.phc__photo--empty {
  background: linear-gradient(145deg, #e8ece8 0%, #cfd6d0 100%);
}

.phc--design .phc__photo--empty {
  background: #4a4a4a;
}

.phc__photo--1 {
  left: 8%;
  top: 12%;
  z-index: 3;
  transform: rotate(-9deg);
}

.phc__photo--2 {
  left: 38%;
  top: 4%;
  z-index: 4;
  width: clamp(130px, 18vw, 190px);
  transform: rotate(6deg);
}

.phc__photo--3 {
  left: 22%;
  top: 42%;
  z-index: 5;
  transform: rotate(3deg);
}

.phc__photo--4 {
  left: 54%;
  top: 38%;
  z-index: 2;
  width: clamp(100px, 14vw, 148px);
  transform: rotate(-5deg);
}

.phc__photo--5 {
  left: 68%;
  top: 14%;
  z-index: 1;
  width: clamp(90px, 12vw, 128px);
  transform: rotate(11deg);
}

.phc__collage-set--layout-2 .phc__photo--1 {
  left: 28%;
  top: 8%;
  width: clamp(140px, 20vw, 200px);
  transform: rotate(4deg);
  z-index: 4;
}
.phc__collage-set--layout-2 .phc__photo--2 {
  left: 8%;
  top: 28%;
  width: clamp(110px, 15vw, 150px);
  transform: rotate(-12deg);
  z-index: 3;
}
.phc__collage-set--layout-2 .phc__photo--3 {
  left: 48%;
  top: 36%;
  transform: rotate(8deg);
  z-index: 5;
}
.phc__collage-set--layout-2 .phc__photo--4 {
  left: 18%;
  top: 52%;
  transform: rotate(2deg);
  z-index: 2;
}
.phc__collage-set--layout-2 .phc__photo--5 {
  left: 62%;
  top: 6%;
  transform: rotate(-7deg);
  z-index: 1;
}

.phc__collage-set--layout-3 .phc__photo--1 {
  left: 2%;
  top: 6%;
  width: clamp(130px, 18vw, 186px);
  transform: rotate(-3deg);
  z-index: 5;
}
.phc__collage-set--layout-3 .phc__photo--2 {
  left: 18%;
  top: 22%;
  transform: rotate(5deg);
  z-index: 4;
}
.phc__collage-set--layout-3 .phc__photo--3 {
  left: 6%;
  top: 48%;
  transform: rotate(-8deg);
  z-index: 3;
}
.phc__collage-set--layout-3 .phc__photo--4 {
  left: 36%;
  top: 40%;
  transform: rotate(10deg);
  z-index: 2;
}
.phc__collage-set--layout-3 .phc__photo--5 {
  left: 52%;
  top: 12%;
  transform: rotate(-2deg);
  z-index: 1;
}

.phc__collage-set--layout-4 .phc__photo--1 {
  left: 4%;
  top: 18%;
  transform: rotate(1deg);
  z-index: 2;
}
.phc__collage-set--layout-4 .phc__photo--2 {
  left: 30%;
  top: 8%;
  width: clamp(120px, 16vw, 170px);
  transform: rotate(-4deg);
  z-index: 3;
}
.phc__collage-set--layout-4 .phc__photo--3 {
  left: 56%;
  top: 16%;
  transform: rotate(6deg);
  z-index: 4;
}
.phc__collage-set--layout-4 .phc__photo--4 {
  left: 16%;
  top: 50%;
  transform: rotate(-6deg);
  z-index: 1;
}
.phc__collage-set--layout-4 .phc__photo--5 {
  left: 48%;
  top: 48%;
  transform: rotate(3deg);
  z-index: 5;
}

.phc__collage-set--layout-5 .phc__photo--1 {
  left: 42%;
  top: 2%;
  width: clamp(120px, 17vw, 176px);
  transform: rotate(8deg);
  z-index: 1;
}
.phc__collage-set--layout-5 .phc__photo--2 {
  left: 30%;
  top: 18%;
  transform: rotate(-5deg);
  z-index: 2;
}
.phc__collage-set--layout-5 .phc__photo--3 {
  left: 18%;
  top: 34%;
  transform: rotate(4deg);
  z-index: 3;
}
.phc__collage-set--layout-5 .phc__photo--4 {
  left: 8%;
  top: 50%;
  transform: rotate(-8deg);
  z-index: 4;
}
.phc__collage-set--layout-5 .phc__photo--5 {
  left: 52%;
  top: 40%;
  transform: rotate(11deg);
  z-index: 5;
}

.phc__collage-set--layout-2.phc__collage-set--count-1 .phc__photo--1,
.phc__collage-set--layout-3.phc__collage-set--count-1 .phc__photo--1,
.phc__collage-set--layout-4.phc__collage-set--count-1 .phc__photo--1,
.phc__collage-set--layout-5.phc__collage-set--count-1 .phc__photo--1 {
  left: 22%;
  top: 16%;
  width: clamp(150px, 22vw, 220px);
}

@media (max-width: 720px) {
  .phc {
    padding: 22px 14px 28px;
  }

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

  .phc__avatar {
    width: 76px;
    height: 76px;
    font-size: 1.55rem;
  }

  .phc__title {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .phc__collage {
    min-height: 210px;
  }

  .phc__photo--1 {
    left: 6%;
    top: 10%;
  }

  .phc__photo--2 {
    left: 42%;
    top: 2%;
  }

  .phc__photo--3 {
    left: 28%;
    top: 44%;
  }

  .phc__photo--4,
  .phc__photo--5 {
    display: none;
  }
}

/* Редактор в настройках */
.pce {
  max-width: 560px;
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: #fff;
}

.pce__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
}

.pce__hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

.pce__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.pce__slot {
  width: 92px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pce__thumb {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: linear-gradient(145deg, #e8ece8 0%, #cfd6d0 100%);
}

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

.pce__slot-actions {
  display: flex;
  gap: 4px;
}

.pce__slot-actions button {
  flex: 1;
  min-height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  padding: 0 4px;
}

.pce__slot-actions button:hover,
.pce__slot-actions button:focus-visible {
  border-color: #94a3b8;
}

.pce__slot-actions button[disabled] {
  opacity: 0.4;
  cursor: default;
}

.pce__upload {
  margin: 0 0 14px;
}

.pce__status {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}

.pce__layouts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pce__layouts-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.pce__chip {
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-weight: 800;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}

.pce__chip.is-active {
  background: #1a1f1c;
  border-color: #1a1f1c;
  color: #fff;
}

.profile-admin-moderation-bar {
  max-width: 1180px;
  margin: 0 auto 12px;
  padding: 8px 16px 0;
  display: flex;
  justify-content: flex-end;
}

/* Личный / публичный — общий для legacy и redesign */
.profile-view-toggle-wrap {
  max-width: 1180px;
  margin: clamp(8px, 1.5vw, 16px) auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* Modal picker (личный профиль redesign) */
#profileCollageModal {
  z-index: 1060;
}
#profileCollageModal .modal-content {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 20, 18, 0.18);
}
#profileCollageModal .modal-header,
#profileCollageModal .modal-footer {
  background: #fff;
}
body.modal-open:has(#profileCollageModal.show) .modal-backdrop {
  z-index: 1055;
}
.pcm__lead,
.pcm__hint,
.pcm__empty {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}
.pcm__count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  color: #334155;
}
.pcm__clear-btn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.pcm__clear-btn:hover {
  color: #1f2937;
}
.pcm__status {
  min-height: 1.2em;
  margin: 0 0 12px;
  font-size: 13px;
  color: #64748b;
}
.pcm__status.is-error {
  color: #b91c1c;
}
.pcm__section {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.pcm__section:last-of-type {
  border-bottom: 0;
}
.pcm__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.pcm__section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
}
.pcm__auto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  user-select: none;
}
.pcm__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pcm__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 72px;
  max-width: 72px;
  margin: 0;
  cursor: pointer;
}
.pcm__pick {
  margin: 0;
  flex-shrink: 0;
}
.pcm__thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: linear-gradient(145deg, #e8ece8 0%, #cfd6d0 100%);
}
.pcm__item:has(.pcm__pick:checked) .pcm__thumb {
  border-color: #1a1f1c;
}
.pcm__thumb img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  object-fit: cover;
  display: block;
}
.pcm__caption {
  font-size: 10px;
  line-height: 1.2;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pcm__upload {
  margin: 0 0 10px;
}
.pcm__album {
  margin: 0 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}
.pcm__album > summary {
  cursor: pointer;
  font-weight: 700;
  color: #334155;
}
.pcm__washes,
.pcm__layouts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.pcm__wash-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pcm__wash-opt {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.pcm__wash-opt.is-active {
  border-color: #1a1f1c;
  box-shadow: 0 0 0 1px #1a1f1c;
}
.pcm__layouts-label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}
.pcm__layout-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pcm__layout-opt {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 76px;
  padding: 6px 8px 4px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  cursor: pointer;
}
.pcm__layout-opt.is-active {
  border-color: #1a1f1c;
  box-shadow: 0 0 0 1px #1a1f1c;
}
.pcm__layout-num {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.pcm__layout-opt.is-active .pcm__layout-num {
  color: #1a1f1c;
}
.pcm__layout-preview {
  position: relative;
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8faf8 0%, #eef2ee 100%);
  overflow: hidden;
}
.pcm__layout-tile {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #fff;
  background: linear-gradient(145deg, #e8ece8 0%, #cfd6d0 100%);
  box-shadow: 0 2px 6px rgba(26, 31, 28, 0.12);
}

/* Layout 1 — как в шапке по умолчанию */
.pcm__layout-preview--1 .pcm__layout-tile--1 { left: 6%; top: 18%; transform: rotate(-9deg); z-index: 3; }
.pcm__layout-preview--1 .pcm__layout-tile--2 { left: 34%; top: 6%; width: 18px; height: 18px; transform: rotate(6deg); z-index: 4; }
.pcm__layout-preview--1 .pcm__layout-tile--3 { left: 18%; top: 46%; transform: rotate(3deg); z-index: 5; }
.pcm__layout-preview--1 .pcm__layout-tile--4 { left: 50%; top: 42%; width: 14px; height: 14px; transform: rotate(-5deg); z-index: 2; }
.pcm__layout-preview--1 .pcm__layout-tile--5 { left: 62%; top: 14%; width: 13px; height: 13px; transform: rotate(11deg); z-index: 1; }

.pcm__layout-preview--2 .pcm__layout-tile--1 { left: 24%; top: 8%; width: 18px; height: 18px; transform: rotate(4deg); z-index: 4; }
.pcm__layout-preview--2 .pcm__layout-tile--2 { left: 6%; top: 24%; width: 14px; height: 14px; transform: rotate(-12deg); z-index: 3; }
.pcm__layout-preview--2 .pcm__layout-tile--3 { left: 42%; top: 34%; transform: rotate(8deg); z-index: 5; }
.pcm__layout-preview--2 .pcm__layout-tile--4 { left: 14%; top: 48%; transform: rotate(2deg); z-index: 2; }
.pcm__layout-preview--2 .pcm__layout-tile--5 { left: 58%; top: 6%; width: 13px; height: 13px; transform: rotate(-7deg); z-index: 1; }

.pcm__layout-preview--3 .pcm__layout-tile--1 { left: 2%; top: 8%; width: 18px; height: 18px; transform: rotate(-3deg); z-index: 5; }
.pcm__layout-preview--3 .pcm__layout-tile--2 { left: 16%; top: 22%; transform: rotate(5deg); z-index: 4; }
.pcm__layout-preview--3 .pcm__layout-tile--3 { left: 4%; top: 48%; transform: rotate(-8deg); z-index: 3; }
.pcm__layout-preview--3 .pcm__layout-tile--4 { left: 32%; top: 40%; transform: rotate(10deg); z-index: 2; }
.pcm__layout-preview--3 .pcm__layout-tile--5 { left: 48%; top: 12%; transform: rotate(-2deg); z-index: 1; }

.pcm__layout-preview--4 .pcm__layout-tile--1 { left: 4%; top: 20%; transform: rotate(1deg); z-index: 2; }
.pcm__layout-preview--4 .pcm__layout-tile--2 { left: 28%; top: 8%; width: 17px; height: 17px; transform: rotate(-4deg); z-index: 3; }
.pcm__layout-preview--4 .pcm__layout-tile--3 { left: 52%; top: 16%; transform: rotate(6deg); z-index: 4; }
.pcm__layout-preview--4 .pcm__layout-tile--4 { left: 12%; top: 50%; transform: rotate(-6deg); z-index: 1; }
.pcm__layout-preview--4 .pcm__layout-tile--5 { left: 44%; top: 48%; transform: rotate(3deg); z-index: 5; }

.pcm__layout-preview--5 .pcm__layout-tile--1 { left: 40%; top: 2%; width: 17px; height: 17px; transform: rotate(8deg); z-index: 1; }
.pcm__layout-preview--5 .pcm__layout-tile--2 { left: 28%; top: 18%; transform: rotate(-5deg); z-index: 2; }
.pcm__layout-preview--5 .pcm__layout-tile--3 { left: 16%; top: 34%; transform: rotate(4deg); z-index: 3; }
.pcm__layout-preview--5 .pcm__layout-tile--4 { left: 6%; top: 50%; transform: rotate(-8deg); z-index: 4; }
.pcm__layout-preview--5 .pcm__layout-tile--5 { left: 48%; top: 40%; transform: rotate(11deg); z-index: 5; }

.prd-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  border: 1.5px solid rgba(25, 43, 77, 0.28);
  background: #fff;
}

.prd-view-toggle__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #192b4d !important;
  text-decoration: none !important;
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.prd-view-toggle__btn.is-active,
.prd-view-toggle__btn[aria-current="page"] {
  background: #414242 !important;
  color: #fff !important;
}

.prd-view-toggle__btn:hover:not(.is-active):not([aria-current="page"]) {
  color: #192b4d !important;
}

#profileCollageModal .modal-dialog {
  max-width: 520px;
}

.pcm__status:empty {
  display: none;
}

.pcm__tools,
.pcm__switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.pcm__switch .pcm__layouts-label {
  flex: 0 0 auto;
}

.pcm__layouts.pcm__switch {
  flex-direction: row;
  margin-top: 0;
}

.pcm__layout-choices {
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
}

.pcm__layout-opt {
  min-width: 0;
  padding: 3px;
  flex-shrink: 0;
}

.pcm__layout-preview {
  width: 54px;
  height: 40px;
}

.pcm-scene__stain {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  object-fit: contain;
}

.pcm__item {
  position: relative;
}

.pcm__pick {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  width: 16px;
  height: 16px;
}

.pcm__album {
  margin-bottom: 6px;
  padding: 4px 8px;
}

.pcm__sketch-toggle {
  margin-bottom: 6px;
}
