* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  background: linear-gradient(160deg, #f8f9ff, #eef0ff);
  color: #2b2d42;
  min-height: 100vh;
}

.page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(80, 80, 160, 0.12);
  padding: 32px;
  width: 420px;
  max-width: 90vw;
}

.card h1 { margin-top: 0; font-size: 1.5rem; }
.sub { color: #6b6f8a; font-size: 0.9rem; margin-bottom: 20px; }

.login-card { text-align: center; }
.login-card label { text-align: left; }
.login-card .status-msg { text-align: center; }
.login-card .login-link { margin-top: 16px; font-size: 0.85rem; }
.login-card .login-link a { color: #6C63FF; text-decoration: none; }
.login-card .login-link a:hover { text-decoration: underline; }

fieldset {
  border: 1px solid #e2e4f5;
  border-radius: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
}
legend { color: #6C63FF; font-weight: bold; padding: 0 8px; }

label { display: block; margin: 10px 0; font-size: 0.85rem; color: #555; }
input[type="text"], input[type="password"], select, textarea {
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d6d9ef;
  font-size: 0.95rem;
  font-family: inherit;
}
textarea { resize: vertical; }

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  min-height: 48px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; margin-top: 10px; }
.btn-primary { background: #2E86FF; color: #fff; }
.btn-secondary { background: #eef0ff; color: #2b2d42; }
.btn-success { background: #2ECC71; color: #fff; }
.btn-back { background: #e5e7eb; color: #444; }
#productCategoryBackBtn { margin-bottom: 16px; }

.notice {
  background: #eef7ff;
  border: 1px solid #cfe6ff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  margin: 14px 0;
}

.status-msg { min-height: 1.4em; font-size: 0.9rem; margin-top: 8px; white-space: pre-line; }
.status-msg.success { color: #2ECC71; font-weight: bold; }
.status-msg.error { color: #E74C3C; font-weight: bold; }

.copy-btn-row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.copy-full-btn {
  flex: 1 1 220px; display: block; padding: 16px 20px;
  font-size: 1.05rem; font-weight: bold; border-radius: 12px;
  background: linear-gradient(135deg, #2E86FF, #2ECC71); color: #fff;
  box-shadow: 0 4px 14px rgba(46, 134, 255, 0.3);
}
.copy-full-btn-alt { background: linear-gradient(135deg, #6C63FF, #A78BFA); box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3); }
.copy-full-btn.copied { background: linear-gradient(135deg, #2ECC71, #27AE60); }
.copy-full-banner {
  background: #eafff0; border: 1px solid #b6f0c9; color: #1b8a4a;
  border-radius: 10px; padding: 12px 16px; font-weight: bold;
  font-size: 0.95rem; white-space: pre-line; text-align: center;
}
@media (max-width: 480px) {
  .copy-full-btn { font-size: 1rem; padding: 16px 12px; flex: 1 1 100%; }
}

/* ---------- App shell ---------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(80, 80, 160, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { font-weight: bold; font-size: 1.1rem; color: #6C63FF; }
.breadcrumb { flex: 1; font-size: 0.85rem; color: #6b6f8a; }
.breadcrumb span { cursor: pointer; }
.breadcrumb span:hover { text-decoration: underline; }
.step-counter { font-size: 0.85rem; color: #6C63FF; font-weight: bold; margin-right: 12px; }
.icon-btn {
  border: none; background: #eef0ff; border-radius: 50%;
  width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer;
}

.progress-bar { height: 4px; background: #e5e7eb; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2E86FF, #6C63FF); transition: width 0.3s ease; }

#app-main { max-width: 900px; margin: 0 auto; padding: 30px 20px 80px; }

.hidden { display: none !important; }

.step { animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-title { font-size: 1.3rem; margin-bottom: 20px; }

.blog-select-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.blog-card, .topic-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(80, 80, 160, 0.1);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}
.blog-card:hover, .topic-card:hover { border-color: #2E86FF; transform: translateY(-3px); }
.blog-card.selected, .topic-card.selected { border-color: #2E86FF; background: #eef7ff; }
.blog-icon, .topic-icon { font-size: 2.4rem; margin-bottom: 8px; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

/* 발행 플랫폼 선택(네이버 블로그/워드프레스·티스토리/둘 다) 버튼 전용 — 다른 topic-grid
   (길이/스타일/주제 선택 등)에는 영향 없이 이 그리드에서만 카드를 더 넓게, 좌우 여백을 더
   줘서 "워드프레스/티스토리" 같은 긴 라벨도 줄바꿈 없이 한 줄로 표시되게 한다. */
#platformGrid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
#platformGrid .topic-card { padding: 20px 32px; white-space: nowrap; }

.drilldown-group {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}
.drilldown-group.open { max-height: 2000px; opacity: 1; margin-top: 20px; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: #eef0ff;
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}
.chip:hover { background: #dfe3ff; }
.chip.selected { background: #2E86FF; color: #fff; }

.nav-row { display: flex; justify-content: space-between; margin-top: 30px; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab-btn {
  border: none; background: #eef0ff; padding: 10px 18px; border-radius: 10px 10px 0 0; cursor: pointer;
}
.tab-btn.active { background: #2E86FF; color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.search-row input, .search-row select { flex: 1; }

.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.product-card {
  background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(80,80,160,0.08);
  padding: 12px; cursor: pointer; border: 2px solid transparent;
}
.product-card.selected { border-color: #2ECC71; }
.product-card img { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: #f5f5f8; display: block; margin: 0 auto; }
.product-card .p-title {
  font-size: 0.85rem; margin: 8px 0 4px; height: 2.6em; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-card .p-price { font-weight: bold; color: #E74C3C; }
.product-card .p-rating { color: #F1C40F; font-size: 0.8rem; font-weight: bold; }
.product-card .p-reviews, .product-card .p-mall { color: #6b6f8a; font-size: 0.78rem; }

.connect-link-label { display: block; margin-top: 10px; font-size: 0.85rem; }

.shop-product-slot {
  background: #f8f9ff; border-radius: 12px; padding: 14px 16px; margin: 10px 0;
}
.shop-product-slot h4 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 0.95rem; }
.shop-product-slot input[type="text"] { width: 100%; margin-bottom: 8px; box-sizing: border-box; }
.shop-product-slot textarea { width: 100%; margin-bottom: 8px; box-sizing: border-box; font-family: inherit; resize: vertical; }
.btn-mini { padding: 4px 10px; font-size: 0.78rem; }

.shop-claude-block {
  background: #eef3ff; border: 1px dashed #2E86FF33; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 12px;
}
.shop-claude-block .hint { margin: 4px 0 10px; }
.shop-claude-block .btn { margin-bottom: 8px; }
.shop-claude-divider { border: none; border-top: 1px solid #e3e6f5; margin: 0 0 12px; }

.title-list { display: flex; flex-direction: column; gap: 10px; }
.title-option {
  background: #fff; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(80,80,160,0.08); border: 2px solid transparent;
}
.title-option:hover { border-color: #2E86FF; }
.title-option.selected { border-color: #2E86FF; background: #eef7ff; }
.title-option label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.title-option input[type="radio"] { width: 18px; height: 18px; cursor: pointer; flex: 0 0 auto; }

.loading { text-align: center; padding: 40px 0; }
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid #dfe3ff; border-top-color: #2E86FF;
  margin: 0 auto 14px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.thumb-preview { width: 100%; max-width: 500px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.img-actions { display: flex; gap: 10px; margin: 12px 0 24px; flex-wrap: wrap; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.img-grid img { width: 100%; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.auto-body-card {
  background: #f8f9ff; border-radius: 12px; padding: 10px; box-shadow: 0 2px 10px rgba(80,80,160,0.08);
}
.auto-body-card img { aspect-ratio: 2 / 1; object-fit: cover; }
.auto-body-card .img-actions { margin: 10px 0 0; }

.img-prompt-block {
  background: #f8f9ff; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
}
.img-prompt-block h4 { margin: 0 0 8px; font-size: 0.9rem; }
.img-prompt-block textarea {
  width: 100%; font-size: 0.85rem; padding: 8px 10px; border-radius: 8px;
  border: 1px solid #d6d9ef; resize: vertical; font-family: inherit;
}
.img-prompt-block .img-actions { margin: 10px 0 4px; }

.img-prompt-combined {
  background: #f8f9ff; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px;
  border: 1px solid #d6d9ef;
}
.img-prompt-combined pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: inherit; font-size: 0.85rem; line-height: 1.6;
}

#catCharacterPreview {
  width: 48px; height: 48px; object-fit: cover; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); vertical-align: middle;
}

.analyze-preview {
  background: #f8f9ff; border-radius: 12px; padding: 16px; margin: 14px 0; font-size: 0.9rem;
}
.analyze-preview .a-title { font-weight: bold; margin-bottom: 6px; }
.analyze-preview ul { margin: 6px 0; padding-left: 18px; }

.concept-card {
  border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer;
}
.concept-card.selected { border-color: #2ECC71; }
.concept-card img { display: block; }
.concept-card .concept-label {
  text-align: center; font-size: 0.8rem; padding: 4px; background: #eef0ff;
}

.content-preview {
  background: #fff; border-radius: 12px; padding: 20px; line-height: 1.8;
  box-shadow: 0 2px 10px rgba(80,80,160,0.08); font-size: 15px; color: #333333;
  max-width: 750px; margin: 0 auto;
}
.content-preview .intro { font-weight: 500; }
.content-preview h2 { margin-top: 24px; margin-bottom: 10px; }
.content-preview p { margin: 14px 0; }
.content-preview p b { font-weight: 600; }
.content-preview a { color: #333333 !important; text-decoration: none !important; }
.content-preview .img-placeholder { color: #999; font-style: italic; }
.content-preview .cons-block, .content-preview .pros-block {
  border-radius: 10px; padding: 12px 16px; margin: 12px 0;
}
.content-preview .cons-block { background: #fff5f5; }
.content-preview .pros-block { background: #f2fbf6; }
.content-preview .cons-block p.solution { color: #6b6f8a; font-size: 0.9rem; margin: 2px 0 12px; }
.content-preview .empathy-list { padding-left: 22px; }
.content-preview .empathy-list li { margin: 6px 0; }
.content-preview .empathy-closing { font-weight: 600; text-align: center; }
.content-preview .closing { font-weight: 500; text-align: center; margin-top: 24px; }
.content-preview .hashtags { color: #3b6fe0; font-size: 0.9em; margin-top: 16px; word-break: break-all; }

.tag-copy-panel {
  background: #f8f9ff; border-radius: 12px; padding: 16px; margin: 16px 0; text-align: center;
}
.tag-copy-panel h4 { margin: 0 0 10px; }
.tag-preview {
  background: #fff; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px;
  font-size: 13px; line-height: 2.0; color: #4A90D9; text-align: left; word-break: break-word;
}

.content-preview .review-slot { display: block; margin: 16px 0; border-radius: 10px; }
.content-preview .review-slot-controls { margin-top: 6px; display: flex; gap: 6px; justify-content: center; }
.content-preview .review-slot-controls button {
  border: none; background: #eef0ff; border-radius: 8px; padding: 4px 10px; font-size: 0.8rem; cursor: pointer;
}

.upload-panel { margin: 20px 0; padding: 16px; background: #f8f9ff; border-radius: 12px; }
.upload-panel h4 { font-size: 0.9rem; margin: 16px 0 8px; color: #444; }
.review-thumb[draggable="true"] { cursor: grab; }
.upload-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.file-upload-btn { display: inline-flex; align-items: center; cursor: pointer; }
.review-thumb { position: relative; }
.review-thumb img { width: 100%; border-radius: 10px; }
.review-thumb .review-thumb-controls {
  display: flex; gap: 4px; justify-content: center; margin-top: 4px;
}
.review-thumb .review-thumb-controls button {
  border: none; background: #eef0ff; border-radius: 8px; padding: 3px 8px; font-size: 0.75rem; cursor: pointer;
}

.thumb-editor-layout { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }

.thumb-canvas-wrap {
  width: 500px; max-width: 500px; height: 500px; margin: 0 auto; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15); background: #ddd; line-height: 0; flex: 0 0 auto;
}
/* 썸네일은 항상 1:1 정사각형 — 다른 규칙에 밀려 가로/세로 비율이 틀어지지 않도록 강제 고정. */
#thumbCanvas, .thumb-canvas-wrap .canvas-container {
  width: 500px !important;
  height: 500px !important;
}

.thumb-side-panel {
  flex: 1 1 250px; width: 250px; max-width: 250px; background: #f8f9ff; border-radius: 12px;
  padding: 18px; text-align: left;
}
.thumb-side-panel h4 { margin: 0 0 14px; font-size: 0.95rem; }
.thumb-panel-section { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #e2e4f5; }
.thumb-panel-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.thumb-panel-label { display: block; font-size: 0.85rem; color: #444; margin: 14px 0 0; }
.thumb-panel-label:first-child { margin-top: 0; }
.thumb-panel-label textarea,
.thumb-panel-label select,
.thumb-panel-label input[type="color"] {
  width: 100%; margin-top: 6px; padding: 6px 8px; border-radius: 8px;
  border: 1px solid #d6d9ef; cursor: pointer; font-family: inherit; font-size: 0.85rem;
}
.thumb-panel-label input[type="color"] { height: 38px; }
.thumb-panel-label textarea { height: auto; cursor: text; resize: vertical; }
.thumb-panel-label input[type="range"] { width: 100%; margin-top: 6px; }
.thumb-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.thumb-checkbox-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

.thumb-swatch-row { display: flex; gap: 6px; margin-top: 8px; }
.thumb-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d6d9ef; cursor: pointer; padding: 0;
}
.thumb-swatch:hover { box-shadow: 0 0 0 2px #2E86FF; }

.thumb-size-stepper { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.thumb-size-stepper button {
  width: 34px; height: 34px; border-radius: 8px; border: none; background: #eef0ff;
  cursor: pointer; font-weight: bold; font-size: 1rem;
}
.thumb-size-stepper button:hover { background: #dfe3ff; }
.thumb-size-stepper span { flex: 1; text-align: center; font-weight: bold; }
.thumb-panel-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.thumb-arrow-pad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 8px; }
.thumb-arrow-mid { display: flex; gap: 34px; }
.thumb-arrow-pad button {
  width: 34px; height: 34px; border-radius: 8px; border: none; background: #eef0ff;
  cursor: pointer; font-weight: bold; font-size: 1rem;
}
.thumb-arrow-pad button:hover { background: #dfe3ff; }

.thumb-align-row { display: flex; gap: 6px; margin-top: 6px; }
.thumb-align-row button {
  flex: 1; border: none; background: #eef0ff; border-radius: 8px; padding: 8px 4px;
  cursor: pointer; font-size: 0.78rem;
}
.thumb-align-row button:hover, .thumb-align-row button.active { background: #2E86FF; color: #fff; }

.thumb-layer-list { display: flex; flex-direction: column; gap: 6px; }
.thumb-layer-item {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: #fff; border-radius: 8px; padding: 6px 8px; font-size: 0.8rem;
}
.thumb-layer-item.active { outline: 2px solid #2E86FF; }
.thumb-layer-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.thumb-layer-item button {
  border: none; background: #eef0ff; border-radius: 6px; padding: 4px 8px; cursor: pointer; font-size: 0.75rem;
}

.thumb-save-big { font-size: 1.05rem; padding: 14px; }

.thumb-lineheight-row { max-width: 500px; margin: 14px auto; }
.thumb-side-panel .thumb-lineheight-row { max-width: none; margin: 14px 0 0; }
.thumb-lineheight-row label { display: block; font-size: 0.85rem; color: #444; margin-bottom: 6px; }
.thumb-lineheight-row input[type="range"] { width: 100%; }

.publish-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }

.modal {
  position: fixed; inset: 0; background: rgba(30,30,50,0.4);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal.hidden { display: none; }
.modal-content {
  background: #fff; border-radius: 16px; padding: 30px; width: 520px; max-width: 92vw;
  max-height: 88vh; overflow-y: auto; position: relative;
}
.modal-close { position: absolute; top: 16px; right: 16px; border: none; background: none; font-size: 1.2rem; cursor: pointer; }
.char-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.char-block { background: #f8f9ff; border-radius: 12px; padding: 14px; text-align: center; }
.char-preview { width: 100%; max-height: 120px; object-fit: contain; margin-bottom: 8px; }
.char-block input[type="text"] { margin-top: 8px; }
.char-block button { margin-top: 8px; width: 100%; }

.hint { font-size: 0.85rem; color: #6b6f8a; margin: 8px 0; }

@media (max-width: 640px) {
  .blog-select-grid { grid-template-columns: 1fr; }
  .char-settings { grid-template-columns: 1fr; }
  #app-main { padding: 20px 12px 60px; }
  .thumb-side-panel { max-width: 500px; width: 100%; }
  .topbar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .breadcrumb { flex-basis: 100%; order: 3; }
}

@media (max-width: 540px) {
  .thumb-canvas-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
  #thumbCanvas, .thumb-canvas-wrap .canvas-container {
    width: 100% !important;
    height: 100% !important;
  }
}

/* 워드프레스 XML-RPC 발행 패널 */
.wp-form-col { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }

.wp-publish-option-grid { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.wp-publish-option-grid .topic-card { flex: 1; min-width: 110px; }

.wp-publish-result {
  padding: 10px 14px; border-radius: 10px; margin-top: 8px; font-size: 0.9rem;
}
.wp-publish-result.ok { background: #e6f9ee; color: #1d8a4d; }
.wp-publish-result.error { background: #fdeaea; color: #c0392b; }
.wp-publish-result a { color: inherit; font-weight: bold; }

/* 워드프레스 이미지 업로더 — 여러 장 한번에 드래그앤드롭/클릭 업로드 + 압축 미리보기 갤러리 */
.wp-image-dropzone {
  position: relative; aspect-ratio: 1200 / 630; border: 2px dashed #c8d3e0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: #f7f9fc; overflow: hidden; transition: border-color 0.15s, background 0.15s;
}
.wp-image-dropzone:hover, .wp-image-dropzone.dragover { border-color: #2E86FF; background: #eef7ff; }
.wp-image-dropzone-hint { font-size: 0.8rem; color: #8a94a6; text-align: center; padding: 0 8px; }
.wp-image-preview { width: 100%; height: 100%; object-fit: cover; }
.wp-image-remove-btn {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.75rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wp-image-remove-btn:hover { background: rgba(0,0,0,0.75); }
.wp-image-download-btn {
  position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.75rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.wp-image-download-btn:hover { background: rgba(0,0,0,0.75); }

.wp-image-dropzone-multi { aspect-ratio: auto; height: 120px; }
.wp-image-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px;
}
.wp-image-gallery-item { position: relative; }
.wp-image-gallery-item .wp-image-preview {
  width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; display: block;
}
.wp-image-gallery-item .wp-image-size-label {
  font-size: 0.75rem; color: #8a94a6; text-align: center; margin-top: 4px;
}
.wp-image-gallery-item .wp-image-slot-download-btn {
  display: block; width: 100%; margin-top: 6px;
}
