/* ============================================
   Section Creative - Page Builder Styles
   ============================================ */

/* Main Layout */
.creative {
  display: grid;
  grid-template-columns: 260px 1fr 240px;
  height: calc(100vh - var(--pl-gnb-height));
  margin-top: var(--pl-gnb-height);
  background: var(--pl-neutral-10);
}

/* ============================================
   Left Sidebar - Section Selector
   ============================================ */
.creative__sidebar {
  background: var(--pl-bg-default);
  border-right: 1px solid var(--pl-border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.creative__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pl-gnb-height);
  padding: 0 var(--pl-spacing-5);
  border-bottom: 1px solid var(--pl-border-light);
  flex-shrink: 0;
}

.creative__sidebar-title {
  font-size: var(--pl-font-size-body-md);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
}

.creative__reset-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--pl-spacing-3) 14px;
  font-size: var(--pl-font-size-label-sm);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-tertiary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-default);
  border-radius: var(--pl-radius-2);
  cursor: pointer;
  transition: all 0.2s;
}

.creative__reset-btn:hover {
  color: var(--pl-static-red);
  border-color: var(--pl-static-red);
  background: var(--pl-bg-default);
}

/* Section Categories */
.creative__sections {
  flex: 1;
  overflow-y: auto;
  padding: var(--pl-spacing-7) 0 var(--pl-spacing-5);
}

.creative__category {
  border-bottom: 1px solid var(--pl-border-light);
}

.creative__category:last-child {
  border-bottom: none;
}

.creative__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--pl-spacing-4) var(--pl-spacing-5);
  font-size: var(--pl-font-size-label-md);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.creative__category-header:hover {
  background: var(--pl-bg-neutral);
}

.creative__category-header svg {
  transition: transform 0.2s;
}

.creative__category.is-open .creative__category-header svg {
  transform: rotate(180deg);
}

.creative__category-items {
  display: none;
  padding: 0 var(--pl-spacing-3) var(--pl-spacing-3);
}

.creative__category.is-open .creative__category-items {
  display: block;
}

.creative__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--pl-spacing-3) var(--pl-spacing-4);
  font-size: var(--pl-font-size-label-sm);
  color: var(--pl-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}

.creative__item:hover {
  color: var(--pl-text-brand);
  background: var(--pl-bg-brand-light);
  border-color: var(--pl-text-brand);
}

.creative__item-name {
  flex: 1;
}


/* ============================================
   Main Area - Preview Canvas
   ============================================ */
.creative__main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Toolbar */
.creative__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pl-gnb-height);
  padding: 0 var(--pl-spacing-5);
  background: var(--pl-bg-default);
  border-bottom: 1px solid var(--pl-border-light);
  flex-shrink: 0;
}

.creative__toolbar-left {
  display: flex;
  align-items: center;
  gap: var(--pl-spacing-4);
  flex: none;
}

.creative__title {
  font-size: var(--pl-font-size-body-md);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
}

.creative__toolbar-center {
  display: flex;
  align-items: center;
  flex: 1;
}

.creative__device-switcher {
  display: flex;
  align-items: center;
  gap: var(--pl-spacing-2);
  background: var(--pl-bg-neutral);
  padding: var(--pl-spacing-2);
  border-radius: var(--pl-radius-2);
}

.creative__device-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  color: var(--pl-text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
}

.creative__device-btn:hover {
  color: var(--pl-text-primary);
}

.creative__device-btn.is-active {
  color: var(--pl-text-primary);
  background: var(--pl-bg-default);
  box-shadow: var(--pl-shadow-sm);
}

/* Theme Switcher */
.creative__theme-switcher {
  display: flex;
  align-items: center;
  gap: var(--pl-spacing-2);
  margin-left: var(--pl-spacing-5);
  padding-left: var(--pl-spacing-5);
  border-left: 1px solid var(--pl-border-default);
}

.creative__theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 32px;
  color: var(--pl-text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
}

.creative__theme-btn:hover {
  color: var(--pl-text-primary);
}

.creative__theme-btn.is-active {
  color: var(--pl-text-primary);
  background: var(--pl-bg-default);
  box-shadow: var(--pl-shadow-sm);
}

.creative__toolbar-right {
  display: flex;
  align-items: center;
  gap: var(--pl-spacing-3);
  flex: none;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.creative__export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--pl-spacing-3) 14px;
  font-size: var(--pl-font-size-label-sm);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-default);
  border-radius: var(--pl-radius-2);
  cursor: pointer;
  transition: all 0.2s;
}

.creative__export-btn:hover {
  background: var(--pl-bg-neutral);
  border-color: var(--pl-text-tertiary);
}

.creative__export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.creative__save-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--pl-spacing-3) 14px;
  font-size: var(--pl-font-size-label-sm);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-invert);
  background: var(--pl-bg-brand);
  border: 1px solid var(--pl-bg-brand);
  border-radius: var(--pl-radius-2);
  cursor: pointer;
  transition: all 0.2s;
}

.creative__save-btn:hover {
  opacity: 0.85;
}

.creative__save-status {
  font-size: var(--pl-font-size-label-sm);
  color: var(--pl-text-tertiary);
  white-space: nowrap;
  transition: color 0.3s;
}

.creative__save-status.is-saved {
  color: var(--pl-text-brand);
}

.creative__save-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: #1a1a1a;
  color: #fff;
  font-size: var(--pl-font-size-label-sm);
  font-weight: var(--pl-font-weight-bold);
  padding: 10px 20px;
  border-radius: var(--pl-radius-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

.creative__save-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Preview Wrapper */
.creative__preview-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-gutter: stable both-edges;
  padding: var(--pl-spacing-5);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.creative__preview {
  background: var(--pl-bg-default);
  box-shadow: var(--pl-shadow-lg);
  border-radius: var(--pl-radius-3);
  overflow-x: clip;
  overflow-y: visible;
  transition: width 0.3s ease;
  flex-shrink: 0;
}

.creative__preview[data-device="pc"] {
  width: 1280px;
}

.creative__preview[data-device="tablet"] {
  width: 720px;
}

.creative__preview[data-device="mobile"] {
  width: 360px;
}

.creative__preview-content {
  width: 100%;
  min-height: 400px;
  container-type: inline-size;
  container-name: section;
}

/* Fixed Header/Footer Slots */
.creative__fixed-slot {
  min-height: 60px;
  position: relative;
}

.creative__fixed-slot--header {
  border-bottom: 2px dashed var(--pl-border-light);
}

.creative__fixed-slot--footer {
  border-top: 2px dashed var(--pl-border-light);
}

.creative__fixed-slot--floating-cta {
  position: relative;
  z-index: 10;
  border-top: 2px dashed var(--pl-border-light);
}

/* 빌더 내에서 플로팅 CTA는 absolute 대신 일반 흐름으로 고정 */
.creative__fixed-slot--floating-cta .creative__floating-cta-wrapper {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.creative__fixed-slot--floating-cta .pl-cta-floating__buttons,
.creative__fixed-slot--floating-cta .pl-cta-floating-b {
  position: static;
  transform: none;
  bottom: auto;
  left: auto;
  margin: 0 auto;
}

.creative__fixed-slot:has(.creative__section-wrapper) {
  border: none;
}

.creative__fixed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--pl-spacing-3);
  padding: var(--pl-spacing-5);
  color: var(--pl-text-tertiary);
  font-size: var(--pl-font-size-label-sm);
  text-align: center;
}

.creative__fixed-placeholder svg {
  opacity: 0.4;
}

.creative__main-content {
  min-height: 400px;
}

/* Empty State */
.creative__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pl-spacing-15) var(--pl-spacing-7);
  color: var(--pl-text-tertiary);
}

.creative__empty svg {
  margin-bottom: var(--pl-spacing-5);
  opacity: 0.3;
}

.creative__empty-title {
  font-size: var(--pl-font-size-title-lg);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-secondary);
  margin-bottom: var(--pl-spacing-3);
}

.creative__empty-desc {
  font-size: var(--pl-font-size-body-md);
  color: var(--pl-text-tertiary);
  text-align: center;
  line-height: 1.6;
}

/* ============================================
   Right Panel - Layers List
   ============================================ */
.creative__layers {
  background: var(--pl-bg-default);
  border-left: 1px solid var(--pl-border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.creative__layers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pl-gnb-height);
  padding: 0 var(--pl-spacing-5);
  border-bottom: 1px solid var(--pl-border-light);
  flex-shrink: 0;
}

.creative__layers-title {
  font-size: var(--pl-font-size-body-md);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
}

.creative__section-count {
  font-size: var(--pl-font-size-label-sm);
  color: var(--pl-text-tertiary);
  background: var(--pl-bg-neutral);
  padding: var(--pl-spacing-1) var(--pl-spacing-3);
  border-radius: var(--pl-radius-circle);
  font-weight: var(--pl-font-weight-bold);
}

.creative__layers-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--pl-spacing-7) var(--pl-spacing-4) var(--pl-spacing-5);
}

.creative__layers-empty {
  padding: var(--pl-spacing-7);
  text-align: center;
  font-size: var(--pl-font-size-label-sm);
  color: var(--pl-text-tertiary);
}

/* Layer Item */
.creative__layer {
  display: flex;
  flex-direction: column;
  gap: var(--pl-spacing-2);
  padding: var(--pl-spacing-3) var(--pl-spacing-4);
  background: var(--pl-bg-neutral);
  border-radius: var(--pl-radius-2);
  margin-bottom: var(--pl-spacing-2);
  cursor: grab;
  transition: all 0.2s;
}

.creative__layer-main {
  display: flex;
  align-items: center;
  gap: var(--pl-spacing-3);
}

.creative__layer:hover {
  background: var(--pl-bg-brand-light);
}

.creative__layer.is-dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.creative__layer.drag-over {
  border: 2px dashed var(--pl-text-brand);
}

.creative__layer--fixed {
  cursor: default;
  background: var(--pl-bg-brand-light);
  border: 1px solid var(--pl-border-brand);
  opacity: 0.9;
}

.creative__layer--fixed:hover {
  background: var(--pl-bg-brand-light);
}

.creative__layer--fixed .creative__layer-info {
  padding-left: var(--pl-spacing-2);
}

.creative__layer--fixed .creative__layer-type {
  color: var(--pl-text-brand);
  font-weight: var(--pl-font-weight-bold);
}

.creative__layer-drag {
  display: flex;
  align-items: center;
  color: var(--pl-text-tertiary);
  cursor: grab;
}

.creative__layer-info {
  flex: 1;
  min-width: 0;
}

.creative__layer-type {
  font-size: var(--pl-font-size-label-sm);
  color: var(--pl-text-brand);
  text-transform: uppercase;
  font-weight: var(--pl-font-weight-bold);
}

.creative__layer-name {
  font-size: var(--pl-font-size-label-sm);
  color: var(--pl-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creative__layer-delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--pl-text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}

.creative__layer:hover .creative__layer-delete {
  opacity: 1;
}

.creative__layer-delete:hover {
  color: var(--pl-static-red);
  background: var(--pl-red-5);
}

/* Layer Controls (Card Count) */
.creative__layer-control {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--pl-spacing-2);
  padding-left: var(--pl-spacing-7);
}

.creative__layer-control-btns {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--pl-spacing-2);
  flex: 1;
  min-width: 0;
}

.creative__layer-control--style {
  gap: 6px;
  padding: var(--pl-spacing-3) 0 var(--pl-spacing-2) var(--pl-spacing-7);
}

.creative__layer-control-label {
  font-size: 10px;
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.creative__card-count-btn {
  padding: var(--pl-spacing-2) var(--pl-spacing-3);
  font-size: 11px;
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-tertiary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-light);
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.creative__card-count-btn:hover {
  color: var(--pl-text-primary);
  border-color: var(--pl-border-brand);
}

.creative__card-count-btn.is-active {
  color: var(--pl-text-invert);
  background: var(--pl-bg-brand);
  border-color: var(--pl-bg-brand);
}

/* Card Style Buttons */
.creative__card-style-btn,
.creative__btn-count-btn {
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1;
  font-weight: var(--pl-font-weight-default);
  color: var(--pl-text-tertiary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-light);
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
}

.creative__card-style-btn:hover,
.creative__btn-count-btn:hover {
  color: var(--pl-text-primary);
  border-color: var(--pl-border-brand);
  background: var(--pl-bg-neutral);
}

.creative__card-style-btn.is-active,
.creative__btn-count-btn.is-active {
  color: var(--pl-text-invert);
  background: var(--pl-bg-brand);
  border-color: var(--pl-bg-brand);
  font-weight: var(--pl-font-weight-bold);
}

/* Review element toggle buttons */
.creative__review-toggle {
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: var(--pl-font-weight-default);
  color: var(--pl-text-tertiary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-light);
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  opacity: 0.45;
}
.creative__review-toggle:hover {
  border-color: var(--pl-border-brand);
  color: var(--pl-text-primary);
  opacity: 1;
}
.creative__review-toggle.is-active {
  color: var(--pl-text-invert);
  background: var(--pl-bg-brand);
  border-color: var(--pl-bg-brand);
  font-weight: var(--pl-font-weight-bold);
  opacity: 1;
}

/* Add Card Button */
.creative__add-card-btn {
  display: flex;
  align-items: center;
  gap: var(--pl-spacing-2);
  padding: 6px var(--pl-spacing-4);
  font-size: 12px;
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-invert);
  background: var(--pl-bg-brand);
  border: none;
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  width: 100%;
}

.creative__add-card-btn:hover {
  background: var(--pl-lightblue-60);
  transform: translateY(-1px);
  box-shadow: var(--pl-shadow-brand);
}

.creative__add-card-btn:active {
  transform: translateY(0);
}

.creative__add-card-btn svg {
  flex-shrink: 0;
}

/* Storyboard Toggle Button */
.creative__storyboard-btn {
  display: flex;
  align-items: center;
  gap: var(--pl-spacing-2);
  padding: 6px var(--pl-spacing-4);
  font-size: 11px;
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-secondary);
  background: var(--pl-bg-neutral);
  border: 1px solid var(--pl-border-light);
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  width: 100%;
}

.creative__storyboard-btn:hover {
  color: var(--pl-text-primary);
  border-color: var(--pl-border-brand);
}

.creative__storyboard-btn.is-active {
  color: var(--pl-text-brand);
  background: var(--pl-bg-brand-light);
  border-color: var(--pl-border-brand);
}

/* 이미지 전체보기 모드: 탭 패널 이미지 그리드 표시 */
.creative__section-wrapper .tab-style-section.is-storyboard .pl-tab-content {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--pl-spacing-4);
  padding: var(--pl-spacing-6) 0;
}

.creative__section-wrapper .tab-style-section.is-storyboard .pl-tab-panel {
  display: block !important;
  border: 1px solid var(--pl-border-light);
  border-radius: var(--pl-radius-2);
  overflow: hidden;
  position: relative;
}

/* 탭 번호 뱃지 */
.creative__section-wrapper .tab-style-section.is-storyboard .pl-tab-panel::before {
  content: attr(data-tab-index);
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--pl-bg-invert);
  color: var(--pl-text-invert);
  font-size: 10px;
  font-weight: var(--pl-font-weight-bold);
  padding: 2px 7px;
  border-radius: var(--pl-radius-circle);
  z-index: 2;
  line-height: 1.6;
}

.creative__section-wrapper .tab-style-section.is-storyboard .pl-tab-label-divider {
  display: none;
}

/* ============================================
   Section in Preview - Editable
   ============================================ */
.creative__section-wrapper {
  position: relative;
  container-type: inline-size;
  container-name: section;
}

/* Card type sections for grid and swipe */
.creative__section-wrapper .card-type-section {
  display: none;
}

.creative__section-wrapper .card-type-section.is-active {
  display: block;
}

/* Tab style sections for tab type */
.creative__section-wrapper .tab-style-section {
  display: none;
}

.creative__section-wrapper .tab-style-section.is-active {
  display: block;
}

.creative__section-wrapper:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--pl-text-brand);
  pointer-events: none;
  z-index: 10;
}

.creative__section-wrapper.is-editing::before {
  border-color: var(--pl-static-green);
}

/* Editable text highlight */
[contenteditable="true"]:not(.pl-btn):not(.pl-cta__btn) {
  outline: none;
  cursor: text;
  transition: background 0.2s, box-shadow 0.2s;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
  position: relative;
}

[contenteditable="true"]:not(.pl-btn):not(.pl-cta__btn):focus {
  background: var(--pl-alpha-brand-12);
  box-shadow: 0 0 0 2px var(--pl-alpha-brand-24);
  outline: none;
}

[contenteditable="true"]:not(.pl-btn):not(.pl-cta__btn):hover:not(:focus) {
  background: rgba(21, 178, 241, 0.06);
}

/* Text delete button */
.creative__text-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  padding: 0;
  background: var(--pl-static-red);
  border: 2px solid var(--pl-bg-default);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.creative__text-delete:hover {
  background: var(--pl-red-60);
  transform: scale(1.1);
}

.creative__text-delete svg {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

[contenteditable="true"]:hover .creative__text-delete {
  display: flex;
}

/* Show tab delete button on hover */
[contenteditable="true"]:hover .creative__tab-delete {
  display: flex !important;
}

/* Allow delete badge to overflow button bounds */
.pl-btn:has(.creative__btn-delete) {
  overflow: visible;
}

/* Button delete (span inside .pl-btn) */
.creative__btn-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--pl-static-red);
  border: 2px solid var(--pl-bg-default);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
  flex-shrink: 0;
}
.creative__btn-delete svg {
  pointer-events: none;
}
.pl-btn:hover .creative__btn-delete {
  display: flex;
}

/* Block delete button (for cards) */
.creative__block-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: var(--pl-static-red);
  border: 2px solid var(--pl-bg-default);
  border-radius: var(--pl-radius-2);
  color: white;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 100;
}

.creative__block-delete:hover {
  background: var(--pl-red-60);
  transform: scale(1.05);
}

.creative__block-delete svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

/* Swipe/Slide full-bg cards: raise above __content (z-index:101) */
.pl-swipe-card .creative__block-delete,
.pl-slide-card .creative__block-delete {
  z-index: 105;
}

.pl-list-card:hover .creative__block-delete,
.pl-grid-card:hover .creative__block-delete,
.pl-swipe-card:hover .creative__block-delete,
.pl-slide-card:hover .creative__block-delete,
.pl-benefit__card:hover .creative__block-delete,
.pl-step__image:hover .creative__block-delete,
.pl-step__item:hover > .creative__block-delete,
.pl-step-text__item:hover > .creative__block-delete,
.pl-step-textonly__item:hover > .creative__block-delete,
.pl-review-card:hover .creative__block-delete,
.pl-faq__item:hover .creative__block-delete,
.pl-about__feature-item:hover > .creative__block-delete {
  display: flex;
}

/* Footer deletable elements */
.pl-footer__category-link:hover .creative__block-delete,
.pl-footer__sns-icon:hover .creative__block-delete,
.pl-footer__dropdown-wrapper:hover .creative__block-delete,
.pl-footer__app-btn:hover .creative__block-delete,
.pl-footer__address p:hover .creative__block-delete,
.pl-footer__call-label:hover .creative__block-delete,
.pl-footer__call-number:hover .creative__block-delete,
.pl-footer__call-time:hover .creative__block-delete,
.pl-footer__copyright:hover .creative__block-delete {
  display: flex;
}

/* Footer sns icon: 작은 아이콘이므로 버튼 크기 조정 */
.pl-footer__sns-icon .creative__block-delete {
  width: 18px;
  height: 18px;
  top: -6px;
  right: -6px;
}
.pl-footer__sns-icon .creative__block-delete svg {
  width: 10px;
  height: 10px;
}

/* Image placeholder (gray box) */
.creative__img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  background: var(--pl-bg-neutral);
  border: 2px dashed var(--pl-bg-neutral-dark);
  border-radius: 8px;
  color: var(--pl-text-tertiary);
  width: 100%;
  min-height: 160px;
  box-sizing: border-box;
  padding: 24px 16px;
}

.creative__img-placeholder-input {
  width: 100%;
  max-width: 320px;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--pl-text-primary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-default);
  border-radius: 6px;
  text-align: center;
  outline: none;
}

/* Tab section: wider textarea */
.creative__img-placeholder-input--tab {
  max-width: 640px;
  width: 100%;
  height: 80px;
  resize: vertical;
  text-align: left;
  line-height: 1.5;
  font-family: var(--pl-font-main);
  font-size: 15px;
  color: var(--pl-text-primary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-default);
  border-radius: 6px;
  padding: 8px 12px;
  outline: none;
}

.creative__img-placeholder-input--tab:focus {
  border-color: var(--pl-border-brand);
}

.creative__img-placeholder-input:focus {
  border-color: var(--pl-border-brand);
}

/* Feature-alt image area: placeholder fills gray area, transparent bg */
.pl-about__feature-image .creative__img-placeholder {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  border-radius: inherit;
  min-height: unset;
}
.pl-about__feature-image .creative__img-placeholder-input {
  max-width: 280px;
  width: 100%;
}

/* Grid card image container: placeholder fills full aspect-ratio height */
.pl-grid-card__image .creative__img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: unset;
  height: 100%;
}

/* Step type-b 화살표: 썸네일 세로 중앙 정렬 (PC/Tablet 그리드) */
@container section (min-width: 640px) {
  .pl-step-text__arrow {
    align-self: start;
    margin-top: var(--_arrow-offset);
  }
}

/* Step type-b 썸네일: overflow:hidden이 input을 clipping하지 않도록 */
.pl-step-text__thumb:has(.creative__img-placeholder) {
  overflow: visible;
}

/* Input inside full-background cards (slide, swipe full) — above overlay */
.pl-slide-card .creative__img-placeholder-input,
.pl-swipe-card--full .creative__img-placeholder-input {
  position: relative;
  z-index: 5;
}

/* Input inside overlay cards: absolute at top of image area */
.pl-swipe-card--overlay .pl-swipe-card__image {
  overflow: visible;
}
.pl-swipe-card--overlay .pl-swipe-card__image .creative__img-placeholder-input {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  width: auto;
  max-width: none;
  z-index: 2;
}

/* Input inside split cards: absolute at bottom of image area */
.pl-swipe-card--split .pl-swipe-card__image .creative__img-placeholder-input {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  width: auto;
  max-width: none;
  z-index: 10;
}

/* Slide/Swipe card image description input */
.creative__img-placeholder-input--card {
  max-width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  text-align: left;
}

.creative__img-placeholder-input--card::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.creative__img-placeholder-input--card:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Fix button contenteditable styling */
.pl-btn[contenteditable="true"],
.pl-cta__btn[contenteditable="true"] {
  /* Remove padding/margin overrides to preserve button styles */
  cursor: text;
}

.pl-btn[contenteditable="true"]:focus,
.pl-cta__btn[contenteditable="true"]:focus {
  /* Use outline instead of box-shadow to avoid interfering with button styles */
  outline: 2px solid var(--pl-alpha-brand-24);
  outline-offset: 2px;
}

/* Fix tab button contenteditable styling */
.pl-tab-btn[contenteditable="true"] {
  /* Preserve all button styles */
  cursor: text;
  user-select: text;
  /* Preserve original styling */
  padding: var(--pl-spacing-2) var(--pl-spacing-5) !important;
  font-family: var(--pl-font-main) !important;
  font-size: var(--pl-font-size-title-sm) !important;
  font-weight: var(--pl-font-weight-default) !important;
  white-space: nowrap !important;
  /* Allow flex gap to work properly */
  flex-shrink: 0 !important;
}

.pl-tab-btn[contenteditable="true"]:focus {
  outline: 2px solid var(--pl-alpha-brand-12);
  outline-offset: -2px;
}

/* Tab delete button */
.creative__tab-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: var(--pl-static-red);
  border: 2px solid var(--pl-bg-default);
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: auto;
}

/* Tab Style A - Default (Outline) */
.creative__section-wrapper .pl-tab-nav:not(.pl-tab-nav--style-b) {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--pl-spacing-3) !important;
  padding: var(--pl-spacing-2) !important;
}

.creative__section-wrapper .pl-tab-nav:not(.pl-tab-nav--style-b) .pl-tab-btn {
  color: var(--pl-text-accent) !important;
  background: var(--pl-bg-default) !important;
  border: 1px solid var(--pl-border-accent-light) !important;
  border-radius: var(--pl-radius-2) !important;
  margin: 0 !important;
}

/* Add margin between tab buttons as fallback */
.creative__section-wrapper .pl-tab-nav:not(.pl-tab-nav--style-b) .pl-tab-btn:not(:last-child) {
  margin-right: var(--pl-spacing-3) !important;
}

.creative__section-wrapper .pl-tab-nav:not(.pl-tab-nav--style-b) .pl-tab-btn.is-active {
  font-weight: var(--pl-font-weight-bold) !important;
  color: var(--pl-text-invert) !important;
  background: var(--pl-bg-accent) !important;
  border-color: var(--pl-bg-accent) !important;
}

/* Tab Style B - Ensure border radius is applied */
.creative__section-wrapper .pl-tab-nav--style-b {
  background: var(--pl-violet-50) !important;
  border-radius: var(--pl-radius-5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--pl-spacing-3) !important;
  padding: var(--pl-spacing-3) var(--pl-spacing-4) !important;
}

.creative__section-wrapper .pl-tab-nav--style-b .pl-tab-btn {
  border-radius: var(--pl-radius-circle) !important;
  color: var(--pl-text-invert) !important;
  background: transparent !important;
  border: none !important;
  padding: var(--pl-spacing-2) var(--pl-spacing-5) !important;
  margin: 0 !important;
}

/* Add margin between tab buttons as fallback */
.creative__section-wrapper .pl-tab-nav--style-b .pl-tab-btn:not(:last-child) {
  margin-right: var(--pl-spacing-3) !important;
}

.creative__section-wrapper .pl-tab-nav--style-b .pl-tab-btn:hover {
  background: var(--pl-alpha-white-12) !important;
}

.creative__section-wrapper .pl-tab-nav--style-b .pl-tab-btn.is-active {
  color: var(--pl-violet-50) !important;
  background: var(--pl-neutral-0) !important;
}

/* Mobile Tab Styles - Only show in mobile view */
@container section (max-width: 639px) {
  /* Hide desktop navigation on mobile */
  .creative__section-wrapper .pl-tab-nav--desktop {
    display: none !important;
  }

  /* Hide both style A and B desktop nav specifically */
  .creative__section-wrapper .pl-tab-nav:not(.pl-tab-nav-mobile) {
    display: none !important;
  }

  /* Show mobile navigation */
  .creative__section-wrapper .pl-tab-nav-mobile {
    display: flex !important;
  }

  .creative__section-wrapper .pl-tab-nav-mobile--style-b {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--pl-spacing-3) !important;
  }

  /* Each row gets its own purple background (pill style) */
  .creative__section-wrapper .pl-tab-nav-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--pl-spacing-3) !important;
    background: var(--pl-violet-50) !important;
    border-radius: var(--pl-radius-circle) !important;
    padding: var(--pl-spacing-3) var(--pl-spacing-3) !important;
  }

  .creative__section-wrapper .pl-tab-nav-mobile--style-b .pl-tab-btn {
    border-radius: var(--pl-radius-circle) !important;
    color: var(--pl-text-invert) !important;
    background: transparent !important;
    border: none !important;
    height: 29px !important;
    padding: 0 !important;
    flex: 1 !important;
    margin: 0 !important;
  }

  .creative__section-wrapper .pl-tab-nav-mobile--style-b .pl-tab-btn:hover {
    background: var(--pl-alpha-white-12) !important;
  }

  .creative__section-wrapper .pl-tab-nav-mobile--style-b .pl-tab-btn.is-active {
    color: var(--pl-violet-50) !important;
    background: var(--pl-neutral-0) !important;
  }

  /* Mobile Style A */
  .creative__section-wrapper .pl-tab-nav-mobile--style-a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: var(--pl-spacing-3) !important;
  }

  .creative__section-wrapper .pl-tab-nav-row-a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--pl-spacing-3) !important;
  }

  .creative__section-wrapper .pl-tab-nav-mobile--style-a .pl-tab-btn {
    font-size: var(--pl-font-size-body-sm) !important;
    font-weight: var(--pl-font-weight-default) !important;
    color: var(--pl-text-accent) !important;
    background: var(--pl-bg-default) !important;
    border: 1px solid var(--pl-border-accent-light) !important;
    border-radius: var(--pl-radius-2) !important;
    padding: var(--pl-spacing-3) var(--pl-spacing-6) !important;
    margin: 0 !important;
  }

  .creative__section-wrapper .pl-tab-nav-mobile--style-a .pl-tab-btn.is-active {
    font-weight: var(--pl-font-weight-bold) !important;
    color: var(--pl-text-invert) !important;
    background: var(--pl-bg-accent) !important;
    border-color: var(--pl-bg-accent) !important;
  }
}

/* Benefit card unified border radius - only when banner is deleted */
/* These rules only apply when the last child is a small card (banner has been removed) */

/* 4-col layout: when banner is deleted, first card gets left corners, last card gets right corners */
.creative__section-wrapper .pl-benefit__grid--4col:has(> .pl-benefit__card--small:last-child) > .pl-benefit__card--small:nth-child(1) {
  border-top-left-radius: var(--pl-radius-5) !important;
  border-bottom-left-radius: var(--pl-radius-5) !important;
}

.creative__section-wrapper .pl-benefit__grid--4col > .pl-benefit__card--small:nth-child(7):last-child {
  border-top-right-radius: var(--pl-radius-5) !important;
  border-bottom-right-radius: var(--pl-radius-5) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* 3-col layout: when banner is deleted, first card gets left corners, last card gets right corners */
.creative__section-wrapper .pl-benefit__grid--3col:has(> .pl-benefit__card--small:last-child) > .pl-benefit__card--small:nth-child(1) {
  border-top-left-radius: var(--pl-radius-5) !important;
  border-bottom-left-radius: var(--pl-radius-5) !important;
}

.creative__section-wrapper .pl-benefit__grid--3col:has(> .pl-benefit__card--small:last-child) > .pl-benefit__card--small:nth-child(5) {
  border-top-right-radius: var(--pl-radius-5) !important;
  border-bottom-right-radius: var(--pl-radius-5) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* 2-col layout: when banner is deleted, first card gets left corners, last card gets right corners */
.creative__section-wrapper .pl-benefit__grid--2col:has(> .pl-benefit__card--small:last-child) > .pl-benefit__card--small:nth-child(1) {
  border-top-left-radius: var(--pl-radius-5) !important;
  border-bottom-left-radius: var(--pl-radius-5) !important;
}

.creative__section-wrapper .pl-benefit__grid--2col:has(> .pl-benefit__card--small:last-child) > .pl-benefit__card--small:nth-child(3) {
  border-top-right-radius: var(--pl-radius-5) !important;
  border-bottom-right-radius: var(--pl-radius-5) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Plus icons positioning - based on banner presence */
/* When banner exists - keep original position */
.creative__section-wrapper .pl-benefit__plus-icon {
  top: 32% !important;
}

/* When banner is deleted - center in cards */
.creative__section-wrapper .pl-benefit__grid:has(> .pl-benefit__card--small:last-child) .pl-benefit__plus-icon {
  top: 50% !important;
}

/* swipe card: 내부 stacking context로 인한 클릭 차단 방지 */
.creative__section-wrapper .pl-swipe-card {
  position: relative;
}

.creative__section-wrapper .pl-swipe-card .creative__block-delete {
  pointer-events: auto !important;
}

/* slide card: overlay(z-index:2)보다 버튼이 위에 오도록 보장 */
.creative__section-wrapper .pl-slide-card .creative__block-delete {
  z-index: 200;
}

/* faq item: 헤더 행 우측, 드롭다운 아이콘과 겹치지 않게 right:40px */
.creative__section-wrapper .pl-faq__item .creative__block-delete {
  top: 16px;
  right: 40px;
  transform: none;
}

/* ============================================
   Custom Confirm Modal
   ============================================ */
.creative__modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pl-bg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.creative__modal-overlay.is-visible {
  opacity: 1;
}

.creative__modal {
  background: var(--pl-bg-default);
  border-radius: var(--pl-radius-3);
  box-shadow: var(--pl-shadow-xl);
  width: 90%;
  max-width: 400px;
  padding: var(--pl-spacing-8);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.creative__modal-overlay.is-visible .creative__modal {
  transform: scale(1);
}

.creative__modal-title {
  font-size: var(--pl-font-size-title-sm);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
  margin-bottom: var(--pl-spacing-4);
}

.creative__modal-message {
  font-size: var(--pl-font-size-body-sm);
  color: var(--pl-text-secondary);
  line-height: var(--pl-line-height-body);
  margin-bottom: var(--pl-spacing-8);
  white-space: pre-line;
}

.creative__modal-actions {
  display: flex;
  gap: var(--pl-spacing-3);
  justify-content: flex-end;
}

.creative__modal-btn {
  padding: var(--pl-spacing-4) var(--pl-spacing-7);
  border-radius: var(--pl-radius-1);
  font-size: var(--pl-font-size-body-sm);
  font-weight: var(--pl-font-weight-bold);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.creative__modal-btn--cancel {
  background: var(--pl-bg-neutral);
  color: var(--pl-text-secondary);
}

.creative__modal-btn--cancel:hover {
  background: var(--pl-bg-neutral-dark);
}

.creative__modal-btn--confirm {
  background: var(--pl-bg-negative);
  color: var(--pl-text-invert);
}

.creative__modal-btn--confirm:hover {
  background: var(--pl-red-60);
}

/* ============================================
   Loading State
   ============================================ */
.creative__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pl-spacing-10);
  color: var(--pl-text-tertiary);
}

.creative__loading::after {
  content: '';
  width: 24px;
  height: 24px;
  margin-left: var(--pl-spacing-3);
  border: 2px solid var(--pl-border-light);
  border-top-color: var(--pl-text-brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   Dark Theme Support
   ============================================ */
.creative__preview[data-theme="dark"],
.creative__preview-content[data-theme="dark"] {
  background: var(--pl-bg-invert);
}

/* Card grid — align-items:start로 override (desc 삭제 시 카드 높이 동적 축소) */
.creative__preview-content .pl-card-grid__row--large,
.creative__preview-content .pl-card-grid__row--small {
  align-items: start;
}

/* GNB — position:fixed를 relative로 override (빌더 프리뷰 안에 고정) */
.creative__preview-content .pl-gnb {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
}

/* Dark Theme - GNB */
.creative__preview[data-theme="dark"] .pl-gnb,
.creative__preview-content[data-theme="dark"] .pl-gnb {
  background: transparent;
}

.creative__preview[data-theme="dark"] .pl-gnb__logo,
.creative__preview-content[data-theme="dark"] .pl-gnb__logo {
  color: var(--pl-text-invert);
}

.creative__preview[data-theme="dark"] .pl-gnb__menu-item,
.creative__preview-content[data-theme="dark"] .pl-gnb__menu-item {
  color: var(--pl-text-invert);
}

.creative__preview[data-theme="dark"] .pl-gnb__menu-item:hover,
.creative__preview-content[data-theme="dark"] .pl-gnb__menu-item:hover {
  color: var(--pl-text-brand);
}

/* Dark Theme - Nav Content */
.creative__preview[data-theme="dark"] .pl-nav-content,
.creative__preview-content[data-theme="dark"] .pl-nav-content {
  background: var(--pl-neutral-100);
}

/* Dark Theme - Footer */
.creative__preview[data-theme="dark"] .pl-footer,
.creative__preview-content[data-theme="dark"] .pl-footer {
  background: var(--pl-neutral-100);
  color: var(--pl-text-invert);
}

.creative__preview[data-theme="dark"] .pl-footer a,
.creative__preview-content[data-theme="dark"] .pl-footer a {
  color: var(--pl-neutral-30);
}

.creative__preview[data-theme="dark"] .pl-footer__title,
.creative__preview-content[data-theme="dark"] .pl-footer__title {
  color: var(--pl-text-invert);
}

/* Dark Theme - Section Titles */
.creative__preview[data-theme="dark"] .pl-section-title__heading,
.creative__preview-content[data-theme="dark"] .pl-section-title__heading {
  color: var(--pl-text-invert);
}

.creative__preview[data-theme="dark"] .pl-section-title__description,
.creative__preview-content[data-theme="dark"] .pl-section-title__description {
  color: var(--pl-neutral-30);
}

/* Dark Theme - Hero */
.creative__preview[data-theme="dark"] .pl-hero__title,
.creative__preview-content[data-theme="dark"] .pl-hero__title {
  color: var(--pl-text-invert);
}

.creative__preview[data-theme="dark"] .pl-hero__desc,
.creative__preview-content[data-theme="dark"] .pl-hero__desc {
  color: var(--pl-neutral-30);
}

/* ============================================
   Help Button
   ============================================ */
.creative__help-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--pl-spacing-3) 14px;
  font-size: var(--pl-font-size-label-sm);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-secondary);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-default);
  border-radius: var(--pl-radius-2);
  cursor: pointer;
  transition: all 0.2s;
}

.creative__help-btn:hover {
  color: var(--pl-text-brand);
  border-color: var(--pl-text-brand);
  background: var(--pl-bg-brand-light);
}

/* ============================================
   Help Modal
   ============================================ */
.creative__help-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.creative__help-overlay.is-visible {
  opacity: 1;
}

.creative__help-modal {
  background: var(--pl-bg-default);
  border-radius: var(--pl-radius-4);
  box-shadow: var(--pl-shadow-xl);
  width: 480px;
  max-width: calc(100vw - 40px);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.creative__help-overlay.is-visible .creative__help-modal {
  transform: scale(1);
}

.creative__help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pl-spacing-7) var(--pl-spacing-8);
  border-bottom: 1px solid var(--pl-border-light);
}

.creative__help-title {
  font-size: var(--pl-font-size-title-sm);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
}

.creative__help-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--pl-text-tertiary);
  background: transparent;
  border: none;
  border-radius: var(--pl-radius-1);
  cursor: pointer;
  transition: all 0.2s;
}

.creative__help-close:hover {
  color: var(--pl-text-primary);
  background: var(--pl-bg-neutral);
}

.creative__help-steps {
  padding: var(--pl-spacing-7) var(--pl-spacing-8);
  display: flex;
  flex-direction: column;
  gap: var(--pl-spacing-6);
}

.creative__help-step {
  display: flex;
  gap: var(--pl-spacing-5);
  align-items: flex-start;
}

.creative__help-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--pl-bg-brand);
  color: var(--pl-text-invert);
  border-radius: 50%;
  font-size: var(--pl-font-size-label-sm);
  font-weight: var(--pl-font-weight-bold);
}

.creative__help-step-body strong {
  display: block;
  font-size: var(--pl-font-size-body-md);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
  margin-bottom: var(--pl-spacing-2);
}

.creative__help-step-body p {
  font-size: var(--pl-font-size-body-sm);
  color: var(--pl-text-secondary);
  line-height: var(--pl-line-height-body);
}

/* ============================================
   Enhanced Empty State - Guide Cards
   ============================================ */
.creative__guide-cards {
  display: flex;
  gap: var(--pl-spacing-4);
  margin-top: var(--pl-spacing-8);
}

[data-device="mobile"] .creative__guide-cards,
[data-device="tablet"] .creative__guide-cards {
  flex-direction: column;
  align-items: center;
}

.creative__guide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--pl-spacing-4);
  background: var(--pl-bg-default);
  border: 1px solid var(--pl-border-light);
  border-radius: var(--pl-radius-3);
  width: 168px;
  gap: var(--pl-spacing-3);
}

.creative__guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--pl-bg-brand-light);
  border-radius: var(--pl-radius-2);
  color: var(--pl-text-brand);
  flex-shrink: 0;
}

.creative__guide-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-bottom: 0;
  opacity: 1;
}

.creative__guide-card-title {
  font-size: var(--pl-font-size-label-md);
  font-weight: var(--pl-font-weight-bold);
  color: var(--pl-text-primary);
}

.creative__guide-card-desc {
  font-size: var(--pl-font-size-body-sm);
  color: var(--pl-text-tertiary);
  line-height: 1.6;
  word-break: keep-all; /* 한글 단어 단위로만 줄바꿈 */
}

/* ============================================
   Responsive
   ============================================ */
/* Toolbar: icon-only buttons at narrow widths */
@media (max-width: 1600px) {
  .creative__save-btn,
  .creative__reset-btn,
  .creative__export-btn,
  .creative__help-btn {
    padding: var(--pl-spacing-3);
    font-size: 0;
    gap: 0;
  }

  .creative__save-btn svg,
  .creative__reset-btn svg,
  .creative__export-btn svg,
  .creative__help-btn svg {
    flex-shrink: 0;
  }
}

@media (max-width: 1400px) {
  .creative {
    grid-template-columns: 240px 1fr 200px;
  }
}

@media (max-width: 1200px) {
  .creative {
    grid-template-columns: 220px 1fr;
  }

  .creative__layers {
    display: none;
  }
}

@media (max-width: 768px) {
  .creative {
    grid-template-columns: 1fr;
  }

  .creative__sidebar {
    display: none;
  }
}

/* ============================================
   Footer / GNB Responsive in Builder
   sections.css의 @media 규칙을 @container section으로 재정의
   (빌더 안에서는 뷰포트가 아닌 프리뷰 컨테이너 너비 기준으로 반응형 적용)
   ============================================ */

/* Footer Tablet (≤1199px) */
@container section (max-width: 1199px) {
  .pl-footer__container {
    padding: 32px 32px var(--pl-spacing-15) 32px;
  }

  .pl-footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .pl-footer__info {
    display: contents;
  }

  .pl-footer__category {
    order: 1;
  }

  .pl-footer__contact {
    order: 2;
    min-width: auto;
  }

  .pl-footer__business {
    order: 3;
  }

  .pl-footer__company-toggle svg {
    display: block;
  }

  .pl-footer__address {
    display: none;
  }

  .pl-footer__address.is-open {
    display: flex;
  }

  .pl-footer__bottom {
    flex-direction: column;
    gap: 24px;
  }

  .pl-footer__sites {
    flex-direction: column;
    width: 100%;
    gap: 24px;
  }

  .pl-footer__dropdowns {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }

  .pl-footer__dropdown-wrapper {
    width: 100%;
  }

  .pl-footer__dropdown {
    width: 100%;
  }
}

/* Footer Mobile (≤639px) */
@container section (max-width: 639px) {
  .pl-footer__container {
    padding: 24px 20px var(--pl-spacing-15) 20px;
  }

  .pl-footer__category {
    gap: 12px 16px;
  }

  .pl-footer__category-link {
    font-size: 14px;
  }

  .pl-footer__call-label {
    font-size: 16px;
  }

  .pl-footer__call-number {
    font-size: 20px;
  }

  .pl-footer__sns {
    gap: 12px;
  }

  .pl-footer__sns-icon {
    width: 36px;
    height: 36px;
  }

  .pl-footer__marks {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .pl-footer__isms {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
  }

  .pl-footer__isms-text {
    flex: 1;
  }

  .pl-footer__isms-text p {
    font-size: 14px;
    line-height: 20px;
  }

  .pl-footer__sites {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .pl-footer__app-btn {
    display: flex;
    max-width: 320px;
  }

  .pl-footer__dropdowns {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  .pl-footer__dropdown-wrapper {
    width: 240px;
  }

  .pl-footer__dropdown {
    width: 100%;
  }

  .pl-footer__business {
    gap: 24px;
  }

  .pl-footer__company {
    margin-bottom: -16px;
  }
}

/* ============================================
   GNB Responsive in Builder
   @media → @container section 재정의
   ============================================ */

/* GNB Tablet (≤1199px): 햄버거 메뉴 표시 */
@container section (max-width: 1199px) {
  .pl-gnb {
    height: 60px;
  }

  .pl-gnb__container {
    max-width: none;
    padding: 0 var(--pl-spacing-8);
  }

  .pl-gnb__nav {
    display: none;
  }

  .pl-gnb__mobile-menu {
    display: flex;
  }
}

/* GNB Mobile (≤639px) */
@container section (max-width: 639px) {
  .pl-gnb {
    height: 66px;
  }

  .pl-gnb__container {
    padding: 0 var(--pl-spacing-6);
  }

  .pl-gnb__logo svg,
  .pl-gnb__logo img {
    height: 24px;
  }
}

