.kv-kakao-card {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:18px;
  margin-bottom:16px;
}

.kv-kakao-grid {
  display:grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap:16px;
}

.kv-label {
  display:block;
  font-size:13px;
  font-weight:700;
  color:#334155;
  margin-bottom:8px;
}

.kv-kakao-textarea {
  width:100%;
  min-height:260px;
  resize:vertical;
  border:1px solid #cbd5e1;
  border-radius:12px;
  padding:12px;
  font-size:13px;
  line-height:1.55;
  outline:none;
}

.kv-kakao-textarea:focus {
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.kv-btn-row {
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}

.kv-drop-zone {
  border:2px dashed #cbd5e1;
  border-radius:14px;
  background:#f8fafc;
  padding:18px;
  min-height:140px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  position:relative;
}

.kv-drop-zone.dragover {
  border-color:#2563eb;
  background:#eff6ff;
}

.kv-drop-title {
  font-weight:800;
  color:#0f172a;
  margin-bottom:4px;
}

.kv-drop-desc {
  font-size:12px;
  color:#64748b;
  margin-bottom:10px;
}

.kv-drop-zone input {
  font-size:12px;
  max-width:100%;
}

.kv-image-list {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(88px, 1fr));
  gap:8px;
  margin-top:10px;
}

.kv-thumb {
  border:1px solid #e2e8f0;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.kv-thumb img {
  width:100%;
  height:76px;
  object-fit:cover;
  display:block;
}

.kv-thumb-name {
  font-size:10px;
  color:#64748b;
  padding:4px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kv-tabs {
  display:flex;
  gap:6px;
  margin-bottom:10px;
}

.kv-tab {
  border:1px solid #d1d5db;
  background:#fff;
  border-radius:10px;
  padding:8px 14px;
  cursor:pointer;
  font-size:13px;
}

.kv-tab.active {
  background:#111827;
  border-color:#111827;
  color:#fff;
}

.kv-panel {
  display:none;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:16px;
}

.kv-panel.active {
  display:block;
}

.kv-empty {
  color:#94a3b8;
  text-align:center;
  padding:40px 10px;
  font-size:13px;
}

.kv-chat-wrap {
  background:#b2c7e8;
  border-radius:14px;
  padding:14px;
}

.kv-msg {
  display:flex;
  gap:8px;
  margin-bottom:10px;
  align-items:flex-end;
}

.kv-msg.me {
  flex-direction:row-reverse;
}

.kv-avatar {
  width:34px;
  height:34px;
  border-radius:50%;
  background:#475569;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  flex-shrink:0;
}

.kv-bubble-wrap {
  max-width:70%;
}

.kv-name {
  font-size:11px;
  color:#334155;
  margin-bottom:3px;
}

.kv-msg.me .kv-name {
  text-align:right;
}

.kv-bubble {
  background:#fff;
  border-radius:13px;
  border-top-left-radius:4px;
  padding:9px 12px;
  font-size:13px;
  line-height:1.5;
  white-space:pre-wrap;
  word-break:break-word;
}

.kv-msg.me .kv-bubble {
  background:#fee500;
  border-top-left-radius:13px;
  border-top-right-radius:4px;
}

.kv-time {
  font-size:10px;
  color:rgba(0,0,0,.45);
  margin-top:3px;
}

.kv-card-list {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.kv-work-card {
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  background:#fff;
}

.kv-work-top {
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}

.kv-order {
  font-family:monospace;
  font-size:12px;
  color:#475569;
}

.kv-badge {
  font-size:11px;
  border-radius:999px;
  padding:3px 8px;
  background:#fef3c7;
  color:#92400e;
  font-weight:700;
}

.kv-product {
  font-weight:800;
  color:#111827;
  margin-bottom:5px;
}

.kv-request {
  color:#475569;
  font-size:13px;
  line-height:1.5;
  white-space:pre-wrap;
}

@media (max-width: 900px) {
  .kv-kakao-grid {
    grid-template-columns:1fr;
  }
}

/* === kakao-raw-save-step1 === */
.kakao-raw-save-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.kakao-raw-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 8px;
  align-items: end;
}

.kakao-raw-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 4px;
}

.kakao-raw-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
}

.kakao-save-btn {
  height: 36px;
  white-space: nowrap;
}

.kakao-raw-msg {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.kakao-raw-msg .good {
  color: #047857;
  font-weight: 900;
}

.kakao-raw-msg .bad {
  color: #dc2626;
  font-weight: 900;
}

.kakao-raw-recent {
  margin-top: 10px;
}

.kakao-recent-title {
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  margin-bottom: 6px;
}

.kakao-recent-list {
  display: grid;
  gap: 6px;
}

.kakao-recent-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 12px;
  color: #334155;
}

.kakao-recent-item .preview {
  margin-top: 4px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .kakao-raw-row {
    grid-template-columns: 1fr;
  }
}
/* === /kakao-raw-save-step1 === */

/* === kakao-vendor-button-ui-v1 === */
.kakao-raw-save-box {
  padding: 14px !important;
}

.kakao-vendor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kakao-vendor-title {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

.kakao-vendor-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.kakao-vendor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.kakao-vendor-btn {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.kakao-vendor-btn:hover {
  background: #e2e8f0;
}

.kakao-vendor-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(29, 78, 216, .22);
}

.kakao-save-btn {
  height: 36px;
  padding: 0 18px !important;
  white-space: nowrap;
}
/* === /kakao-vendor-button-ui-v1 === */

/* === kakao-photo-below-textarea-v1 === */
.kv-photo-inline {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.kv-photo-inline .kv-label {
  margin-bottom: 8px;
}

.kv-drop-zone-inline {
  min-height: 86px !important;
  padding: 12px !important;
}

.kv-drop-zone-inline .kv-drop-title {
  font-size: 13px;
}

.kv-drop-zone-inline .kv-drop-desc {
  font-size: 11px;
  margin-bottom: 6px;
}

.kv-kakao-side-panel {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  min-height: 100%;
}

.kv-side-outer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 8px;
}

.kv-side-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 5px;
}

.kv-side-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 12px;
}

.kv-calendar-placeholder,
.kv-saved-list-placeholder {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  padding: 14px;
  margin-bottom: 10px;
  min-height: 80px;
}
/* === /kakao-photo-below-textarea-v1 === */

/* === kakao-calendar-step1 === */
.kv-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.kv-cal-head b {
  display: block;
  font-size: 13px;
  color: #0f172a;
  text-align: center;
}

.kv-cal-head span {
  display: block;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 2px;
}

.kv-cal-nav {
  width: 30px;
  height: 30px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.kv-cal-week,
.kv-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.kv-cal-week div {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  font-weight: 800;
  padding-bottom: 4px;
}

.kv-cal-day {
  position: relative;
  min-height: 38px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  cursor: default;
  font-size: 12px;
  color: #94a3b8;
}

.kv-cal-day.blank {
  border: 0;
  background: transparent;
}

.kv-cal-day.has {
  cursor: pointer;
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  font-weight: 900;
}

.kv-cal-day.has:hover {
  background: #dbeafe;
}

.kv-cal-day .num {
  display: block;
}

.kv-cal-day .cnt {
  position: absolute;
  right: 4px;
  bottom: 3px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
}

.kv-cal-empty,
.kv-cal-error,
.kv-saved-empty,
.kv-saved-loading {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px;
}

.kv-cal-error {
  color: #dc2626;
  font-weight: 800;
}

.kv-saved-title {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
}

.kv-saved-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.kv-saved-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px;
  font-size: 12px;
  color: #334155;
}

.kv-saved-item .preview {
  margin-top: 4px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* === /kakao-calendar-step1 === */

/* === kakao-saved-item-load-v1 === */
.kv-saved-item {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
}

.kv-saved-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.kv-saved-item .preview {
  margin-top: 4px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kv-saved-item .hint {
  margin-top: 4px;
  font-size: 11px;
  color: #2563eb;
  font-weight: 800;
}
/* === /kakao-saved-item-load-v1 === */

/* === kakao-duplicate-notice-v1 === */
.kakao-raw-msg .dup {
  display: inline-block;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 900;
}
/* === /kakao-duplicate-notice-v1 === */

/* === kakao-retention-6month-v1 === */
.kv-clean-old-btn {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  cursor: pointer;
  margin-right: 6px;
}

.kv-clean-old-btn:hover {
  background: #fef3c7;
}
/* === /kakao-retention-6month-v1 === */

/* === kakao-delete-ui-reposition-v1 === */
.kv-cal-actions {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 8px 0 12px !important;
}

.kv-clean-old-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #f59e0b !important;
  background: #fffbeb !important;
  color: #92400e !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 7px 11px !important;
  cursor: pointer !important;
}

.kv-clean-old-btn:hover {
  background: #fef3c7 !important;
}

.kv-delete-month-btn {
  display: none !important;
}

.kv-date-actions {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 0 8px !important;
}

.kv-delete-date-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #fb7185 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
}

.kv-saved-item-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 70px !important;
  gap: 6px !important;
  align-items: stretch !important;
}

.kv-delete-one-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #fecaca !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 6px 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.kv-delete-one-btn:hover,
.kv-delete-date-btn:hover {
  background: #ffe4e6 !important;
}
/* === /kakao-delete-ui-reposition-v1 === */

/* === kakao-delete-button-inside-card-v1 === */
.kv-saved-item-wrap {
  display: block !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  margin-bottom: 7px !important;
}

.kv-saved-item-wrap .kv-saved-item {
  border: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
}

.kv-saved-item-actions {
  display: flex !important;
  justify-content: flex-end !important;
  padding: 6px 8px 8px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.kv-delete-one-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 70px !important;
  border: 1px solid #fecaca !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 6px 9px !important;
  cursor: pointer !important;
}

.kv-date-actions {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 0 8px !important;
}

.kv-delete-date-btn {
  display: inline-flex !important;
  border: 1px solid #fb7185 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
}
/* === /kakao-delete-button-inside-card-v1 === */

/* === kakao-delete-full-fix-v1 === */
.kv-cal-actions {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  margin: 8px 0 12px !important;
}

.kv-clean-old-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #f59e0b !important;
  background: #fffbeb !important;
  color: #92400e !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 7px 11px !important;
  cursor: pointer !important;
}

.kv-saved-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.kv-saved-title {
  margin-bottom: 0 !important;
}

.kv-delete-date-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #fb7185 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.kv-saved-item-wrap {
  display: block !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
}

.kv-saved-item-wrap .kv-saved-item {
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: 100% !important;
}

.kv-saved-item-actions {
  display: flex !important;
  justify-content: flex-end !important;
  padding: 6px 8px 8px !important;
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.kv-delete-one-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 70px !important;
  border: 1px solid #fecaca !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 6px 9px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
/* === /kakao-delete-full-fix-v1 === */

/* === kakao-clean-old-top-right-v1 === */
.kv-side-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.kv-side-head .kv-side-desc {
  margin-bottom: 0 !important;
}

.kv-side-head .kv-clean-old-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  margin-top: 0 !important;
}

.kv-cal-actions {
  display: none !important;
}
/* === /kakao-clean-old-top-right-v1 === */

/* === kakao-saved-item-delete-icon-v1 === */
.kv-saved-item-wrap {
  position: relative !important;
}

.kv-saved-item-wrap .kv-saved-item {
  width: 100% !important;
  display: block !important;
  text-align: left !important;
  padding-right: 54px !important; /* 휴지통 자리 확보 */
  box-sizing: border-box !important;
}

.kv-saved-item-wrap .kv-saved-item .hint {
  display: none !important;
}

.kv-saved-item-wrap .kv-saved-item-actions {
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

.kv-saved-item-wrap .kv-delete-one-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: #fff5f5 !important;
  border: 1px solid #f2b8b5 !important;
  color: #d93025 !important;
  box-shadow: none !important;
  z-index: 3 !important;
}

.kv-saved-item-wrap .kv-delete-one-btn:hover {
  background: #ffe9e7 !important;
  border-color: #ea9e98 !important;
}

.kv-saved-item-wrap .kv-delete-one-btn span,
.kv-saved-item-wrap .kv-delete-one-btn .label {
  display: none !important;
}
/* === /kakao-saved-item-delete-icon-v1 === */

/* === kakao-photo-upload-step1 === */
.kv-thumb-status {
  font-size: 10.5px;
  padding: 4px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-weight: 800;
}

.kv-thumb-status.uploading {
  color: #1d4ed8;
  background: #eff6ff;
}

.kv-thumb-status.done {
  color: #047857;
  background: #ecfdf5;
}

.kv-thumb-status.error {
  color: #dc2626;
  background: #fef2f2;
}
/* === /kakao-photo-upload-step1 === */

/* === kakao-photo-upload-split-v1 === */
.kv-photo-empty,
.kv-photo-guide {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  padding: 12px;
  text-align: center;
}

.kv-photo-guide {
  color: #b45309;
  background: #fffbeb;
  border-color: #fcd34d;
}

.kv-thumb-status.ready {
  color: #64748b;
  background: #f8fafc;
}
/* === /kakao-photo-upload-split-v1 === */

/* === kakao-photo-duplicate-guard-v1 === */
.kv-thumb-status.duplicate {
  color: #92400e;
  background: #fffbeb;
}
/* === /kakao-photo-duplicate-guard-v1 === */

/* === kakao-photo-delete-step1 === */
.kv-thumb {
  position: relative;
}

.kv-photo-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: rgba(255, 241, 242, .96);
  color: #be123c;
  font-size: 15px;
  font-weight: 900;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
  z-index: 5;
}

.kv-photo-delete-btn:hover {
  background: #ffe4e6;
}
/* === /kakao-photo-delete-step1 === */

/* === kakao-photo-open-original-v1 === */
.kv-photo-open-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.kv-photo-open-btn img {
  display: block;
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.kv-photo-open-btn:hover img {
  opacity: .88;
}
/* === /kakao-photo-open-original-v1 === */

/* === kakao-photo-modal-viewer-v1 === */
.kakao-photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.kakao-photo-modal.show {
  display: block;
}

.kakao-photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .74);
}

.kakao-photo-modal-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 980px);
  max-height: 92vh;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.kakao-photo-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.kakao-photo-modal-url {
  min-width: 0;
  font-size: 12px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kakao-photo-modal-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.kakao-photo-modal-actions button {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.kakao-photo-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(92vh - 54px);
  padding: 14px;
  background: #111827;
}

.kakao-photo-modal-body img {
  max-width: 100%;
  max-height: calc(92vh - 82px);
  object-fit: contain;
  background: #fff;
}
/* === /kakao-photo-modal-viewer-v1 === */

/* === kakao-photo-thumb-grid-v1 === */
/* 사진 썸네일: 좌→우 먼저 나열, 넘치면 다음 줄 */
.kv-photo-inline .kv-image-list,
#kakao_image_list .kv-image-list,
#kakao_photo_result .kv-image-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin-top: 12px !important;
}

.kv-photo-inline .kv-thumb,
#kakao_image_list .kv-thumb,
#kakao_photo_result .kv-thumb {
  width: 92px !important;
  flex: 0 0 92px !important;
  margin: 0 !important;
}

.kv-photo-inline .kv-thumb img,
#kakao_image_list .kv-thumb img,
#kakao_photo_result .kv-thumb img {
  width: 92px !important;
  height: 92px !important;
  object-fit: cover !important;
}

.kv-photo-inline .kv-thumb-name,
#kakao_image_list .kv-thumb-name,
#kakao_photo_result .kv-thumb-name {
  font-size: 10px !important;
  line-height: 1.25 !important;
  min-height: 24px !important;
  word-break: break-all !important;
}

.kv-photo-inline .kv-thumb-status,
#kakao_image_list .kv-thumb-status,
#kakao_photo_result .kv-thumb-status {
  font-size: 10px !important;
  line-height: 1.2 !important;
}
/* === /kakao-photo-thumb-grid-v1 === */

/* === kakao-photo-bulk-delete-v1 === */
.kakao-photo-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 10px 0 8px;
}

.kakao-photo-delete-all-btn {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 11px;
  cursor: pointer;
}

.kakao-photo-delete-all-btn:hover {
  background: #ffe4e6;
}
/* === /kakao-photo-bulk-delete-v1 === */

/* === kakao-photo-match-step1 === */
.kv-match-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.kv-match-title {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

.kv-match-desc {
  margin-top: 3px;
  font-size: 12px;
  color: #64748b;
}

.kv-match-refresh {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  cursor: pointer;
}

.kv-match-empty {
  padding: 28px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.kv-match-warning {
  border: 1px solid #fbbf24;
  background: #fffbeb;
  color: #92400e;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.kv-match-ok {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #047857;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.kv-match-list {
  display: grid;
  gap: 10px;
}

.kv-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.kv-match-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 900;
  margin-bottom: 6px;
}

.kv-match-msg-line {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.45;
  word-break: break-word;
}

.kv-match-small {
  margin-top: 6px;
  font-size: 11px;
  color: #94a3b8;
}

.kv-match-missing {
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  padding: 12px;
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.kv-match-photo {
  min-width: 0;
}

.kv-match-img-btn {
  display: block;
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  padding: 6px;
  cursor: zoom-in;
}

.kv-match-img-btn img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.kv-match-photo-name {
  margin-top: 5px;
  font-size: 11px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kv-match-photo-id {
  margin-top: 3px;
  font-size: 11px;
  color: #64748b;
}

.kv-match-photo-actions {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.kv-match-photo-actions button {
  flex: 1;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 5px 0;
  font-weight: 900;
  cursor: pointer;
}

.kv-match-note {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .kv-match-row {
    grid-template-columns: 1fr;
  }
}
/* === /kakao-photo-match-step1 === */

/* === force-hard-delete-button-v1 === */
.kv-side-danger-actions {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.kv-clean-all-btn {
  border: 1px solid #fb7185 !important;
  background: #fff1f2 !important;
  color: #be123c !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  padding: 7px 11px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.kv-clean-all-btn:hover {
  background: #ffe4e6 !important;
}
/* === /force-hard-delete-button-v1 === */

/* === kakao-placeholder-style-v1 === */
.kv-kakao-textarea::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-weight: 500 !important;
}
/* === /kakao-placeholder-style-v1 === */
