/* ============================================================
   host-spaces-form-v3.css — 레거시 상품/지점 등록 폼을
   디자인의 위저드 모달로 재스킨 (마크업·ID·name 계약 무변경)

   대상 레거시 마크업
     section#rentalFormContainer.rental-form-container  (rental, prem)
     section#meetingRoomFormContainer                   (hourly-products)
     div#branch-edit-view                               (spot)
   토글 신호는 레거시 그대로 .show 클래스 (spot 은 inline display)
   ============================================================ */

/* ---------- 모달 셸 ---------- */
#rentalFormContainer,
#premFormContainer,
#meetingRoomFormContainer {
  display: none;
  position: fixed; inset: 0; z-index: 1300;
  background: var(--ws-dimmer, rgba(23, 23, 25, .52));
  padding: 24px; overflow-y: auto;
  align-items: flex-start; justify-content: center;
}
#rentalFormContainer.show,
#premFormContainer.show,
#meetingRoomFormContainer.show { display: flex; }

#rentalFormContainer > .form-header,
#premFormContainer > .form-header,
#meetingRoomFormContainer > .form-header,
#rentalFormContainer > form,
#premFormContainer > form,
#meetingRoomFormContainer > form { box-sizing: border-box; }

/* 폼 컨테이너 내부를 하나의 카드로 묶기 위해 헤더+폼을 감싼 효과를 CSS 로 구현 */
#rentalFormContainer.show,
#premFormContainer.show,
#meetingRoomFormContainer.show { flex-direction: column; }

#rentalFormContainer .form-header,
#premFormContainer .form-header,
#meetingRoomFormContainer .form-header {
  width: 760px; max-width: 100%; margin: auto auto 0;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 18px 24px; border-bottom: 1px solid var(--ws-line-alt);
  display: flex; align-items: center; gap: 12px; flex: none;
}
#rentalFormContainer .form-header h2,
#premFormContainer .form-header h2,
#meetingRoomFormContainer .form-header h2 {
  margin: 0; font-size: 18px; font-weight: 600; flex: 1;
}
#rentalFormContainer .form-close-btn,
#premFormContainer .form-close-btn,
#meetingRoomFormContainer .form-close-btn {
  width: 34px; height: 34px; border: none; border-radius: 10px; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
  color: var(--ws-text-alternative); font-size: 17px;
}
#rentalFormContainer .form-close-btn:hover,
#premFormContainer .form-close-btn:hover,
#meetingRoomFormContainer .form-close-btn:hover { background: rgba(112, 115, 124, .08); }

#rentalFormContainer form,
#premFormContainer form,
#meetingRoomFormContainer form {
  width: 760px; max-width: 100%; margin: 0 auto auto;
  background: #fff; border-radius: 0 0 20px 20px;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 48px - 71px);
}

/* ---------- 지점 폼 (spot) — inline display 로 여닫히므로 block 기준 ---------- */
#branch-edit-view {
  position: fixed; inset: 0; z-index: 1300;
  background: var(--ws-dimmer, rgba(23, 23, 25, .52));
  padding: 24px; overflow-y: auto;
}
#branch-edit-view .form-header {
  width: 760px; max-width: 100%; margin: 0 auto;
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 18px 24px; border-bottom: 1px solid var(--ws-line-alt);
  display: flex; align-items: center; gap: 12px;
}
#branch-edit-view .form-header h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; }
#branch-edit-view .form-header .toss-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 15px; border: none; border-radius: 11px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; flex: none;
}
#branch-edit-view .form-header > div { flex: none; display: flex; gap: 8px; }
#branch-edit-view .form-header .toss-btn--secondary { background: var(--ws-fill); color: var(--ws-text-normal); }
#branch-edit-view .form-header .toss-btn--secondary:hover { background: rgba(112, 115, 124, .14); }
#branch-edit-view .form-header .toss-btn--primary { background: #3366FF; color: #fff; }
#branch-edit-view .form-header .toss-btn--primary:hover { background: #2A4FD6; }
#branch-edit-view .customization-content {
  width: 760px; max-width: 100%; margin: 0 auto;
  background: #fff; border-radius: 0 0 20px 20px; padding: 22px 24px 24px;
}
#branch-edit-view .customization-form { display: flex; flex-direction: column; gap: 24px; }
#branch-edit-view .form-group[data-step] { display: block; }
.form-hint, .form-hint-inline { font-size: 12px; color: var(--ws-text-alternative); font-weight: 400; }
.category-group-title { margin: 0 0 9px; font-size: 13px; font-weight: 600; color: var(--ws-text-alternative); }
.category-group { margin-bottom: 16px; }
.category-chips { display: flex; flex-wrap: wrap; gap: 7px; }
/* 지점 폼 카테고리 — spot-form.js 가 label.category-chip > input + .chip-content 로 생성 */
.category-chip { position: relative; display: inline-flex; cursor: pointer; }
.category-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.category-chip .chip-content {
  display: inline-flex; align-items: center; font-size: 12.5px; padding: 7px 14px;
  border-radius: 9999px; border: 1px solid var(--ws-line-strong); background: #fff;
  color: var(--ws-text-alternative); transition: all .12s ease; white-space: nowrap;
}
.category-chip:hover .chip-content { background: var(--ws-bg-alt); }
.category-chip input:checked + .chip-content {
  border-color: #3366FF; background: #EBF1FF; color: #2A4FD6; font-weight: 600;
}
/* 운영시간 그리드 — spot-form.js 가 생성하는 .hours-* 마크업 */
.operating-hours-grid { display: flex; flex-direction: column; gap: 10px; }
.hours-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: var(--ws-bg-alt); border-radius: 12px;
}
.hours-day-label { width: 22px; flex: none; font-size: 13px; font-weight: 600; }
.hours-toggle { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; cursor: pointer; }
.hours-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.hours-toggle .toggle-slider {
  position: absolute; inset: 0; border-radius: 9999px; background: rgba(112, 115, 124, .28);
  transition: background .15s ease;
}
.hours-toggle .toggle-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 9999px; background: #fff; box-shadow: var(--ws-shadow-emphasize);
  transition: left .15s ease;
}
.hours-toggle input:checked + .toggle-slider { background: #3366FF; }
.hours-toggle input:checked + .toggle-slider::before { left: 22px; }
.hours-time-inputs { display: flex; align-items: center; gap: 8px; flex: 1; }
.hours-time-inputs .toss-input { height: 40px; background: #fff; }
.hours-separator { color: var(--ws-text-alternative); }
.hours-closed-label { font-size: 13px; color: var(--ws-text-alternative); }
.linked-products-section { display: flex; flex-direction: column; gap: 12px; }
.company-info-banner {
  display: flex; align-items: center; gap: 10px; background: #EFF3FF;
  border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: 600; color: #2A4FD6;
}
.product-selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.products-loading, .products-empty { text-align: center; padding: 24px; color: var(--ws-text-alternative); font-size: 13px; }

/* svg-icons.js가 정적 Font Awesome 아이콘(i.fas)을 svg.svg-icon 으로 치환하는데,
   이 페이지는 전역 사이징(css/styles.css 의 .svg-icon)을 로드하지 않아
   아이콘이 컨테이너를 꽉 채워 거대해지는 문제가 있었다. 전역 규칙과 동일하게 스코프 사이징. */
#branch-edit-view .svg-icon {
  display: inline-block; width: 1em; height: 1em;
  vertical-align: -0.125em; fill: currentColor; overflow: visible;
}
#branch-edit-view .products-loading .svg-icon { width: 32px; height: 32px; } /* 로딩 스피너 크기 보존 */
#branch-edit-view .svg-spin { animation: svg-spin 1s linear infinite; }
@keyframes svg-spin { to { transform: rotate(360deg); } }

/* ---------- 연결된 상품 카드 (spot-form.js 의 renderProductSelection 마크업) ----------
   카드 내부(썸네일 img·뱃지·정보)에 이 페이지 CSS 규칙이 없어 썸네일이 원본 크기로
   커지는 문제가 있었다. 목록/표 뷰와 동일한 --ws 토큰으로 카드 스타일 정의. */
#branch-edit-view .product-selection-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--ws-line-alt); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease;
}
#branch-edit-view .product-selection-card:hover { border-color: var(--ws-line-strong); }
#branch-edit-view .product-selection-card.selected { border-color: #2A4FD6; box-shadow: 0 0 0 1px #2A4FD6; }
#branch-edit-view .product-checkbox {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 18px; height: 18px; cursor: pointer; accent-color: #2A4FD6;
}
#branch-edit-view .product-card-thumbnail {
  width: 100%; height: 112px; background: var(--ws-fill-alt);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
#branch-edit-view .product-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
#branch-edit-view .product-card-thumbnail .svg-icon,
#branch-edit-view .product-card-thumbnail i { font-size: 26px; width: 26px; height: 26px; color: var(--ws-text-assistive); }
#branch-edit-view .product-card-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; min-width: 0; }
#branch-edit-view .product-type-badge {
  align-self: flex-start; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 8px; background: var(--ws-fill); color: var(--ws-text-alternative);
}
#branch-edit-view .product-card-name {
  margin: 0; font-size: 14px; font-weight: 600; color: var(--ws-text-normal);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#branch-edit-view .product-card-location {
  margin: 0; font-size: 12px; color: var(--ws-text-alternative);
  display: flex; align-items: center; gap: 4px; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#branch-edit-view .product-card-location .svg-icon,
#branch-edit-view .product-card-location i { flex: none; font-size: 11px; width: 11px; height: 11px; }

/* 모바일 안내 시트 */
.mobile-desktop-overlay {
  position: fixed; inset: 0; z-index: 1400; background: var(--ws-dimmer, rgba(23, 23, 25, .52));
  align-items: center; justify-content: center; padding: 24px;
}
.mobile-desktop-sheet {
  background: #fff; border-radius: 20px; padding: 28px 24px; text-align: center;
  max-width: 380px; width: 100%;
}
.mobile-desktop-icon { font-size: 44px; color: #3366FF; }
.mobile-desktop-title { margin: 14px 0 8px; font-size: 17px; font-weight: 700; }
.mobile-desktop-desc { margin: 0 0 18px; font-size: 13px; color: var(--ws-text-alternative); line-height: 1.6; }
.mobile-desktop-close-btn { width: 100%; }

/* ---------- 스텝 ---------- */
.form-section {
  padding: 22px 24px 4px;
}
.form-section:last-of-type { padding-bottom: 16px; }
#rentalFormContainer form,
#premFormContainer form,
#meetingRoomFormContainer form { overflow-y: auto; }

.section-title { margin-bottom: 14px; }
.section-title h4 {
  margin: 0; font-size: 15px; font-weight: 600;
  padding-bottom: 12px; border-bottom: 1px solid var(--ws-line-alt);
}
.section-title .section-hint,
.section-title h4 > span:not(.required) {
  font-size: 12px; font-weight: 400; color: var(--ws-text-alternative); margin-left: 8px;
}
.section-hint { font-size: 12px; color: var(--ws-text-alternative); margin-left: 8px; }
.required { color: var(--ws-negative, #E5484D); }

.amenity-category h5 {
  margin: 0 0 9px !important; font-size: 13px !important;
  font-weight: 600 !important; color: var(--ws-text-alternative) !important;
}
.amenity-category-header {
  margin: 0 0 9px; font-size: 13px; font-weight: 600; color: var(--ws-text-alternative);
}

/* ---------- 폼 요소 ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row .form-group { min-width: 0; }
.form-group.full-width, .form-row .form-group[style*="width: 100%"] { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; }

.toss-label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ws-text-normal);
}
.toss-input, .toss-select,
.form-group input[type="text"], .form-group input[type="tel"], .form-group input[type="email"],
.form-group input[type="number"], .form-group input[type="date"], .form-group select {
  width: 100%; height: 46px; border: 1px solid var(--ws-line-strong); border-radius: 12px;
  background: var(--ws-bg-alt); padding: 0 14px; font-size: 14px; font-family: inherit;
  color: var(--ws-text-normal); box-sizing: border-box;
}
.toss-select, .form-group select { appearance: none; padding-right: 34px; cursor: pointer; }
.toss-input:focus, .toss-select:focus, .form-group input:focus, .form-group select:focus {
  outline: none; border-color: #3366FF; box-shadow: 0 0 0 3px rgba(51, 102, 255, .16);
}
.toss-input:disabled, .toss-input[readonly] { background: var(--ws-fill); color: var(--ws-text-alternative); }
.toss-input[readonly]:not([disabled]) { cursor: pointer; }

/* 위치 입력 */
.location-input-group { display: flex; gap: 8px; }
.location-input-group .toss-input { flex: 1; }
.location-select-btn {
  display: inline-flex !important; align-items: center; gap: 6px; height: 46px; padding: 0 14px;
  border: 1px solid var(--ws-line-strong) !important; border-radius: 12px; background: #fff !important;
  font-size: 13px; font-weight: 600; color: #3366FF !important; cursor: pointer; white-space: nowrap;
  font-family: inherit; flex: none;
}
.location-select-btn:hover { background: var(--ws-bg-alt) !important; }

/* ---------- 칩(카테고리·상태·편의시설·기간) ---------- */
.category-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.category-btn {
  font-family: inherit; font-size: 13px; font-weight: 500; padding: 9px 16px;
  border-radius: 9999px; border: 1px solid var(--ws-line-strong); background: #fff;
  color: var(--ws-text-alternative); cursor: pointer; transition: all .12s ease;
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
}
.category-btn:hover { background: var(--ws-bg-alt); }
.category-btn.selected {
  border-color: #3366FF; background: #EBF1FF; color: #2A4FD6; font-weight: 600;
}
.category-btn img, .category-btn svg { width: 15px; height: 15px; }
.loading-placeholder { color: var(--ws-text-alternative) !important; font-size: 13px !important; }

/* 서브카테고리 칩 */
.subcategory-selection-container { margin-top: 16px; }
.subcategory-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.host-form-chip, .level3-chip {
  font-family: inherit; font-size: 12.5px; padding: 7px 13px; border-radius: 9999px;
  border: 1px solid var(--ws-line-strong); background: #fff; color: var(--ws-text-alternative); cursor: pointer;
}
.host-form-chip.active, .host-form-chip.selected,
.level3-chip.active, .level3-chip.selected { border-color: #3366FF; background: #EBF1FF; color: #2A4FD6; }
.level3-hash { color: var(--ws-text-assistive); margin-right: 2px; }

/* ---------- 이미지 업로드 ---------- */
.multi-image-upload-area { position: relative; }
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--ws-line-strong); border-radius: 14px; padding: 34px 16px;
  text-align: center; background: var(--ws-bg-alt); cursor: pointer; transition: all .12s ease;
  position: relative;
}
.upload-placeholder:hover { border-color: #9DB4FF; background: #F5F8FF; }
.upload-placeholder svg { color: var(--ws-text-assistive) !important; margin-bottom: 8px !important; }
.upload-placeholder p { margin: 0; font-size: 13px; color: var(--ws-text-alternative); }
.multi-image-upload-area.drag-over .upload-placeholder { border-color: #3366FF; background: #F5F8FF; }
.multi-image-upload-area.processing { opacity: .6; pointer-events: none; }

.image-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px; margin-top: 12px;
}
.image-preview-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--ws-fill); cursor: grab; border: 1px solid var(--ws-line-alt);
}
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-preview-item.dragging, .image-preview-item.touch-dragging { opacity: .45; }
.image-preview-item .remove-image {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 9999px;
  border: none; background: rgba(0, 0, 0, .58); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.image-preview-item .remove-image:hover { background: rgba(0, 0, 0, .76); }
.image-preview-item:first-child::after {
  content: '대표'; position: absolute; left: 6px; bottom: 6px;
  font-size: 10px; font-weight: 700; color: #fff; background: #3366FF;
  border-radius: 6px; padding: 2px 7px;
}
.touch-drag-ghost { opacity: .8; pointer-events: none; z-index: 1500; }

/* ---------- 체크인 방식 ---------- */
.checkin-mode-selector { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.checkin-mode-btn {
  border: 1px solid var(--ws-line-strong); background: #fff; border-radius: 14px;
  padding: 14px 12px; text-align: center; cursor: pointer; font-family: inherit;
  transition: all .12s ease; display: flex; flex-direction: column; gap: 4px;
}
.checkin-mode-btn:hover { background: var(--ws-bg-alt); }
.checkin-mode-btn.selected { border-color: #3366FF; background: #F5F8FF; }
.checkin-mode-title { font-size: 13px; font-weight: 600; color: var(--ws-text-normal); }
.checkin-mode-btn.selected .checkin-mode-title { color: #2A4FD6; }
.checkin-mode-desc { font-size: 11px; color: var(--ws-text-alternative); line-height: 1.4; }

/* 위치 확인 설정 */
.location-verification-section {
  margin-top: 14px; background: var(--ws-bg-alt); border-radius: 12px; padding: 14px 16px;
}
.location-verification-header {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.location-verification-header i { color: #3366FF; }
.location-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.location-checkbox-label input { margin-top: 3px; accent-color: #3366FF; }
.checkbox-text strong { display: block; font-size: 13px; font-weight: 600; }
.checkbox-text small { font-size: 12px; color: var(--ws-text-alternative); }
.location-radius-input { margin-top: 12px; }
.location-radius-input label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.radius-input-wrapper { display: flex; align-items: center; gap: 8px; }
.radius-input-wrapper input {
  width: 120px; height: 42px; border: 1px solid var(--ws-line-strong); border-radius: 10px;
  background: #fff; padding: 0 12px; font-size: 14px; font-family: inherit;
}
.radius-unit { font-size: 13px; color: var(--ws-text-alternative); }

/* ---------- 가격 공개 설정 ---------- */
.price-visibility-section { margin-top: 22px; }
.price-visibility-section .section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-visibility-section .section-title h4 { border-bottom: none; padding-bottom: 0; }
.plan-badge {
  font-size: 10px; font-weight: 700; color: #fff; background: #171717;
  border-radius: 6px; padding: 3px 8px;
}
.toggle-card { background: var(--ws-bg-alt); border-radius: 12px; padding: 14px 16px; }
.toggle-card.disabled { opacity: .62; }
.toggle-card-content { display: flex; align-items: center; gap: 12px; }
.toggle-info { flex: 1; min-width: 0; }
.toggle-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.toggle-title svg { color: var(--ws-text-alternative); width: 18px; height: 18px; }
.toggle-description { margin: 3px 0 0; font-size: 12px; color: var(--ws-text-alternative); line-height: 1.5; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 25px; flex: none; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
/* 반드시 .toggle-switch 하위로만 스코프할 것 — 지점 폼의 운영시간 그리드에도
   .toggle-slider 가 래퍼 없이 등장해서, 전역으로 잡으면 inset:0 이 모달 기준으로
   풀려 화면 크기의 원이 그려진다. */
.toggle-switch .toggle-slider {
  position: absolute; inset: 0; border-radius: 9999px; background: rgba(112, 115, 124, .28);
  transition: background .15s ease;
}
.toggle-switch .toggle-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px;
  border-radius: 9999px; background: #fff; box-shadow: var(--ws-shadow-emphasize);
  transition: left .15s ease;
}
.toggle-switch input:checked + .toggle-slider { background: #3366FF; }
.toggle-switch input:checked + .toggle-slider::before { left: 22px; }
.toggle-switch input:disabled + .toggle-slider { cursor: not-allowed; opacity: .6; }
.plan-upgrade-notice {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ws-line-alt);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.plan-upgrade-notice p { margin: 0; font-size: 12.5px; color: var(--ws-text-alternative); }
.upgrade-link { font-size: 12.5px; font-weight: 600; color: #3366FF; text-decoration: none; }
.hide-price-options { margin-top: 12px; }
.auto-apply-notice { background: #F5F8FF; border-radius: 12px; padding: 14px 16px; }
.notice-header { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #2A4FD6; }
.auto-apply-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.auto-apply-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ws-text-alternative); line-height: 1.5; }
.auto-apply-list svg { flex: none; margin-top: 2px; color: #3366FF; }

/* ---------- Tiptap ---------- */
.tiptap-wrapper { border: 1px solid var(--ws-line-strong); border-radius: 12px; overflow: visible; }
.tiptap-toolbar {
  display: flex; align-items: center; gap: 1px; flex-wrap: wrap; padding: 7px 9px;
  background: var(--ws-bg-alt); border-bottom: 1px solid var(--ws-line-alt);
  border-radius: 12px 12px 0 0;
}
.tiptap-btn {
  min-width: 28px; height: 28px; border: none; border-radius: 7px; background: transparent;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ws-text-alternative); font-family: inherit;
}
.tiptap-btn:hover { background: rgba(112, 115, 124, .1); }
.tiptap-btn.active { background: #EBF1FF; color: #2A4FD6; }
.tiptap-btn-text span { font-size: 12px; font-weight: 600; }
.tiptap-divider { width: 1px; height: 18px; background: var(--ws-line); margin: 0 4px; }
.tiptap-editor {
  min-height: 180px; padding: 14px; font-size: 14px; line-height: 1.8;
  color: var(--ws-text-normal); background: #fff; border-radius: 0 0 12px 12px;
  outline: none; overflow-y: auto; max-height: 380px;
}
.tiptap-editor:empty::before {
  content: attr(data-placeholder); color: var(--ws-text-assistive); pointer-events: none;
}
.tiptap-editor img { max-width: 100%; border-radius: 10px; }
.tiptap-editor blockquote {
  margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--ws-line-strong);
  color: var(--ws-text-alternative);
}
.tiptap-editor pre {
  background: var(--ws-fill); border-radius: 10px; padding: 12px; overflow-x: auto; font-size: 13px;
}
.color-picker-palette, .font-size-palette {
  position: absolute; z-index: 20; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16); padding: 8px; display: flex; gap: 6px; flex-wrap: wrap;
}
.font-size-palette { flex-direction: column; max-height: 220px; overflow-y: auto; }
.color-option {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--ws-line); cursor: pointer;
}
.color-option.color-remove { background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ws-text-alternative); }
.font-size-option {
  min-width: 46px; height: 30px; border: none; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 13px; cursor: pointer; color: var(--ws-text-normal);
}
.font-size-option:hover { background: var(--ws-bg-alt); }

/* ---------- 푸터 ---------- */
.form-footer {
  position: sticky; bottom: 0; background: #fff; z-index: 2;
  padding: 16px 24px; border-top: 1px solid var(--ws-line-alt);
  display: flex; justify-content: flex-end; gap: 10px; border-radius: 0 0 20px 20px;
}
.form-footer .toss-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 18px; border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
}
.form-footer .toss-btn--secondary { background: var(--ws-fill); color: var(--ws-text-normal); }
.form-footer .toss-btn--secondary:hover { background: rgba(112, 115, 124, .14); }
.form-footer .toss-btn--primary { background: #3366FF; color: #fff; }
.form-footer .toss-btn--primary:hover { background: #2A4FD6; }

/* ---------- 모바일 ---------- */
@media (max-width: 760px) {
  #rentalFormContainer, #meetingRoomFormContainer { padding: 0; }
  #rentalFormContainer .form-header,
  #meetingRoomFormContainer .form-header {
    width: 100%; border-radius: 0; margin: 0;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
  }
  #rentalFormContainer form,
  #meetingRoomFormContainer form {
    width: 100%; border-radius: 0; margin: 0; flex: 1;
    max-height: none; height: calc(100% - 71px);
  }
  .form-row { grid-template-columns: 1fr; }
  .checkin-mode-selector { grid-template-columns: 1fr; }
  .form-section { padding: 18px 18px 4px; }
  .form-footer {
    padding: 14px 18px calc(14px + var(--app-safe-bottom, env(safe-area-inset-bottom, 0px)));
    border-radius: 0;
  }
  .image-preview-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}

/* ---------- 운영시간 (시간제 상품) ---------- */
/* 선택 입력이다. 비워두면 가용성 API가 공통 기본값(09:00~22:00)을 쓰고
   응답에 source:'default'로 근사치임을 표시한다. */
.oh-hint {
  margin: -4px 0 12px;
  font-size: 13px; line-height: 1.5;
  color: var(--ws-text-assistive);
}
.oh-grid { display: flex; flex-direction: column; gap: 8px; }
.oh-row {
  display: grid;
  grid-template-columns: 92px 1fr auto 1fr;
  align-items: center; gap: 8px;
}
.oh-day {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ws-text-normal);
  cursor: pointer;
}
.oh-day input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--ws-primary);
  cursor: pointer;
}
.oh-row input[type="time"] {
  width: 100%; height: 42px; padding: 0 10px;
  border: 1px solid var(--ws-line); border-radius: 12px;
  font-size: 14px; color: var(--ws-text-normal);
  background: #fff;
}
.oh-row input[type="time"]:disabled {
  background: var(--ws-bg-alt);
  color: var(--ws-text-assistive);
  cursor: not-allowed;
}
.oh-row.is-closed .oh-day { color: var(--ws-text-assistive); }
.oh-sep { font-size: 13px; color: var(--ws-text-assistive); }
.oh-copy-btn {
  margin-top: 10px; height: 38px; padding: 0 14px;
  border: 1px solid var(--ws-line); border-radius: 12px;
  background: #fff;
  font-size: 13px; font-weight: 600; color: var(--ws-text-normal);
  cursor: pointer;
}
.oh-copy-btn:hover { border-color: var(--ws-line-strong); }

@media (max-width: 760px) {
  .oh-row { grid-template-columns: 76px 1fr auto 1fr; gap: 6px; }
  .oh-row input[type="time"] { height: 40px; padding: 0 8px; font-size: 13px; }
}
