/*
 * brand-kit.css — Brand Kit 모달 스타일
 * 의존: 없음 (app-brand-kit.js 단독 로드)
 */
.bk-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 9999;
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  animation: bkFade 180ms ease-out;
}
@keyframes bkFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bkSlide {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.bk-card {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
  animation: bkSlide 220ms cubic-bezier(.2, .8, .2, 1);
}
@media (width >= 640px) {
  .bk-backdrop { align-items: center; }
  .bk-card { border-radius: 20px; max-height: 88vh; }
}
.bk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.bk-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin: 0; }
.bk-sub { font-size: 13px; color: #6b6b6b; margin: 2px 0 0; }
.bk-close {
  appearance: none;
  border: none;
  background: #f3f3f5;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #5a5a5a;
}
.bk-close:hover { background: #e9e9ec; }
.bk-field { margin-bottom: 14px; }
.bk-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #2d2d33;
  margin-bottom: 6px;
}
.bk-hint { font-size: 12px; color: #8a8a90; margin-top: 4px; line-height: 1.4; }
.bk-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #e3e3e6;
  border-radius: 14px;
  font-size: 15px;
  background: #fafafb;
  color: #1a1a1a;
  font-family: inherit;
  outline: none;
  transition: border-color 120ms, background 120ms;
}
.bk-input:focus { border-color: #D58A95; background: #fff; }
.bk-row { display: flex; gap: 10px; align-items: center; }
.bk-row .bk-input { flex: 1; }
.bk-prefix {
  padding: 12px 10px;
  background: #f3f3f5;
  border-radius: 14px;
  font-size: 15px;
  color: #6b6b6b;
  font-weight: 600;
}
.bk-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bk-chip {
  appearance: none;
  border: 1px solid #e3e3e6;
  background: #fafafb;
  border-radius: 14px;
  padding: 10px 8px;
  font-size: 13px;
  color: #3a3a40;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 120ms;
}
.bk-chip:hover { background: #f0f0f3; }
.bk-chip.is-active {
  border-color: #D58A95;
  background: #FDECEE;
  color: #C24558;
  font-weight: 600;
}
.bk-slider-row { display: flex; align-items: center; gap: 12px; }
.bk-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, #D58A95, #e3e3e6);
  outline: none;
}
.bk-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #D58A95;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.bk-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #D58A95;
  cursor: pointer;
}
.bk-slider-val {
  min-width: 44px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a40;
}
.bk-color-row { display: flex; align-items: center; gap: 10px; }
.bk-color-input {
  width: 48px;
  height: 48px;
  border: 1px solid #e3e3e6;
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  padding: 2px;
  flex-shrink: 0;
}
.bk-color-hex { flex: 1; }
.bk-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f3;
}
.bk-btn {
  flex: 1;
  appearance: none;
  border: none;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 120ms;
}
.bk-btn-secondary { background: #f3f3f5; color: #3a3a40; }
.bk-btn-secondary:hover { background: #e9e9ec; }
.bk-btn-primary {
  background: #D58A95;
  color: #fff;
  box-shadow: 0 4px 12px rgba(213,138,149, 0.3);
}
.bk-btn-primary:hover { background: #E66D7F; }
