/* 별사탕 포토 · 꾸미기 단계 (위시켓 159882 시연) */
:root {
  --bg: #FFF1F5;
  --surface: #FFFFFF;
  --text: #2A1730;
  --muted: #7A6480;
  --line: #F0CFDC;
  --primary: #D4157E;
  --primary-ink: #B00F68;
  --primary-soft: #FFE1EE;
  --accent: #0FA3C2;
  --accent-ink: #0B6F85;
  --accent-soft: #E3F6FA;
  --yellow: #FFD400;
  --ok: #1F8A4C;
  --warn: #B25E00;
  --danger: #C62828;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 23, 48, .06), 0 8px 24px rgba(212, 21, 126, .08);
  --display: "Dongle", "Pretendard Variable", Pretendard, sans-serif;
  --body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bk {
  margin: 0;
  min-width: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(212, 21, 126, .09) 1.3px, transparent 1.6px);
  background-size: 14px 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--primary-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img, svg { max-width: 100%; }
p { margin: 0; }
.bk-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bk-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 안내 띠 */
.bk-band {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  background: #FBE1EB;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
}

/* 머리글 */
.bk-head { background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); }
.bk-head__in {
  max-width: 1232px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.bk-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex: none; }
.bk-brand__name { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: .8; padding-top: 4px; color: var(--primary); }
.bk-brand__sub { font-size: 14px; color: var(--muted); font-weight: 600; }
.bk-nav { display: flex; gap: 4px; margin-left: auto; }
.bk-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.bk-nav__link:hover { background: var(--primary-soft); }
.bk-nav__link.is-on { background: var(--text); color: #FFFFFF; }
.bk-reset {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
  flex: none;
}
.bk-reset:hover { border-color: var(--primary); color: var(--primary-ink); }

/* 흐름 띠 */
.bk-flow { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .6); }
.bk-flow__in { max-width: 1232px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.bk-flow__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; }
.bk-flow__step { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: #8C7891; font-weight: 600; }
.bk-flow__step:not(:last-child)::after { content: "→"; margin: 0 8px; color: #C9B3C6; font-weight: 400; }
.bk-flow__step.is-ours {
  color: #FFFFFF;
  background: var(--primary);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  margin-right: 8px;
}
.bk-flow__step.is-ours::after { content: none; }
.bk-flow__step.is-ours + .bk-flow__step::before { content: "→"; margin-right: 8px; color: #C9B3C6; font-weight: 400; }
.bk-flow.is-off .bk-flow__step.is-ours + .bk-flow__step::before { content: none; }
.bk-flow__tag { background: #FFFFFF; color: var(--primary-ink); font-size: 12.5px; padding: 1px 8px; border-radius: 999px; font-weight: 700; }
.bk-flow__legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-left: auto; }
.bk-key { display: inline-flex; align-items: center; gap: 6px; }
.bk-key::before { content: ""; width: 12px; height: 12px; border-radius: 4px; }
.bk-key--old::before { background: #E8DEE6; }
.bk-key--new::before { background: var(--primary); }
.bk-key--off { display: none; color: var(--warn); font-weight: 600; }
.bk-key--off::before { background: transparent; border: 2px solid var(--warn); }
.bk-flow.is-off .bk-flow__step.is-ours { display: none; }
.bk-flow.is-off .bk-key--new { display: none; }
.bk-flow.is-off .bk-key--off { display: inline-flex; }

/* 본문 */
.bk-main { max-width: 1232px; margin: 0 auto; padding: 16px 16px 96px; }

/* 단추 */
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  background: var(--surface);
  color: var(--text);
}
.bk-btn--primary { background: var(--primary); color: #FFFFFF; }
.bk-btn--primary:hover { background: var(--primary-ink); }
.bk-btn--line { border-color: var(--line); }
.bk-btn--line:hover { border-color: var(--primary); }
.bk-btn--ghost { background: transparent; border-color: transparent; color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.bk-btn--danger { background: var(--danger); color: #FFFFFF; }
.bk-btn--sm { min-height: 44px; padding: 0 10px; font-size: 15px; }
.bk-btn--kiosk { min-height: 56px; font-size: 20px; border-radius: 16px; padding: 0 20px; }
.bk-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.bk-count {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-size: 14px;
  display: inline-grid;
  place-items: center;
}
.bk-link { color: var(--primary-ink); font-weight: 700; }

/* 키오스크: 남은 시간 + 공통 단추 */
.bk-kiosk { display: grid; gap: 14px; }
.bk-offnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #FFF4E0;
  border: 2px solid #F2C98B;
  color: #6B3A00;
}
.bk-offnote[hidden] { display: none; }
.bk-bar { display: flex; align-items: stretch; gap: 14px; }
.bk-timer {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 8px 16px 14px;
  box-shadow: var(--shadow);
}
.bk-timer__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bk-timer__label { font-weight: 700; font-size: 17px; }
.bk-timer__num { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: .8; padding-top: 8px; color: var(--primary); font-variant-numeric: tabular-nums; min-width: 72px; }
.bk-timer__warn { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 700; }
.bk-timer__warn::before { content: "!"; width: 22px; height: 22px; border-radius: 50%; background: var(--warn); color: #FFFFFF; display: inline-grid; place-items: center; font-size: 14px; }
.bk-timer__warn[hidden] { display: none; }
.bk-timer__ten { margin-left: auto; }
.bk-timer__track { height: 14px; border-radius: 999px; background: #F7DCE7; overflow: hidden; margin-top: 4px; }
.bk-timer__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #F0559F);
  transform-origin: left center;
  transition: transform .26s linear;
}
.bk-timer.is-warn .bk-timer__num { color: var(--warn); }
.bk-timer.is-warn .bk-timer__fill { background: var(--warn); }
.bk-timer.is-warn { box-shadow: 0 0 0 3px #F2C98B, var(--shadow); }
.bk-bar__acts { display: flex; gap: 10px; align-items: center; }

/* 캔버스 + 도구 패널 */
.bk-stage { display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); gap: 18px; align-items: start; }
.bk-canvas { display: grid; gap: 10px; min-width: 0; }
.bk-frame {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 580 / 828;
  border-radius: 12px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  filter: drop-shadow(0 10px 22px rgba(176, 15, 104, .16));
}
.bk-frame .bk-item { cursor: grab; }
.bk-frame .bk-handle { cursor: pointer; }
.bk-frame .bk-handle--rot { cursor: nwse-resize; }
.bk-canvas.is-pen .bk-frame, .bk-canvas.is-pen .bk-frame .bk-item { cursor: crosshair; }
.bk-cutpick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-cutpick__label { font-weight: 700; font-size: 15px; color: var(--muted); margin-right: 2px; }
.bk-cutpick__btn {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  padding-top: 4px;
}
.bk-cutpick__btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 2px var(--accent); }
.bk-cutpick__zoom {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--text);
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}
.bk-fine { font-size: 14px; color: var(--muted); }

.bk-panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; min-width: 0; }
.bk-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-tab {
  min-height: 56px;
  border-radius: 14px;
  border: 0;
  background: var(--primary-soft);
  color: var(--primary-ink);
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.bk-tab[aria-selected="true"] { background: var(--primary); color: #FFFFFF; }
.bk-tabs--plain { display: inline-grid; grid-template-columns: none; grid-auto-flow: column; gap: 6px; }
.bk-tabs--plain .bk-tab { min-height: 48px; font-size: 17px; padding: 0 18px; }
.bk-pane { display: grid; gap: 14px; padding-top: 16px; }
.bk-pane[hidden] { display: none; }
.bk-pane__row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.bk-pane__label { font-size: 15px; font-weight: 700; color: var(--muted); min-width: 34px; }
.bk-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 16px; background: #FBEAF1; }
.bk-seg > button {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bk-seg > button[aria-pressed="true"] { background: var(--surface); color: var(--primary-ink); box-shadow: 0 0 0 2px var(--primary), 0 2px 6px rgba(212, 21, 126, .18); }
.bk-seg--stack { display: grid; width: 100%; }
.bk-seg--stack > button { justify-content: flex-start; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bk-chip small { font-size: 13px; font-weight: 600; color: var(--muted); }
.bk-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #FFFFFF; }
.bk-chip[aria-pressed="true"] small { color: #FFE1EE; }
.bk-grid { display: grid; gap: 10px; }
.bk-grid--bg { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.bk-grid--st { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.bk-tile {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  min-width: 0;
}
.bk-tile__img {
  display: block;
  border: 4px solid #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(42, 23, 48, .14);
  aspect-ratio: 268 / 370;
  background: #F4EEF2;
}
.bk-tile__img svg { display: block; width: 100%; height: 100%; }
.bk-tile--st .bk-tile__img { aspect-ratio: 1; background: #F9E2EC; padding: 6px; }
.bk-tile--orig .bk-tile__img { position: relative; }
.bk-tile--orig .bk-tile__img::after { content: "원본"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .92); color: var(--text); font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bk-tile__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.bk-tile[aria-pressed="true"] .bk-tile__img { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 4px 12px rgba(15, 163, 194, .3); }
.bk-tile[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  border: 2px solid #FFFFFF;
}
.bk-tile:hover .bk-tile__img { transform: translateY(-1px); }
.bk-empty { color: var(--muted); padding: 12px; border: 2px dashed var(--line); border-radius: 14px; }

.bk-adjust { display: grid; gap: 10px; padding-top: 14px; border-top: 2px dashed var(--line); }
.bk-adjust__title { font-weight: 800; font-size: 17px; }
.bk-adjust.is-idle .bk-adjust__title { color: var(--muted); font-weight: 600; }
.bk-adjust__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.bk-adjust__move { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-adj {
  min-height: 56px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  line-height: 1.2;
}
.bk-adj span { font-size: 20px; color: var(--accent-ink); }
.bk-adj:hover:not(:disabled) { border-color: var(--accent); }
.bk-adj--del span { color: var(--danger); }
.bk-adj--del:hover:not(:disabled) { border-color: var(--danger); }
.bk-adj--arrow { width: 56px; font-size: 22px; color: var(--accent-ink); }
.bk-adj:disabled { opacity: .45; }
.bk-hint { font-size: 15px; color: var(--muted); }

.bk-pane__row--wrap { align-items: flex-start; }
.bk-pane__row--wrap > .bk-pane__label { padding-top: 12px; }
.bk-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-swatch {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #FFFFFF;
  background: var(--sw);
  box-shadow: 0 0 0 1.5px #D9C2CF;
}
.bk-swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent), 0 0 0 6px var(--accent-soft); }
.bk-dot { width: var(--d); height: var(--d); border-radius: 50%; background: currentColor; display: inline-block; }
.bk-eraser { min-height: 56px; font-size: 17px; }

/* 대화상자 */
.bk-modal { border: 0; padding: 0; background: transparent; max-width: 460px; width: calc(100% - 32px); color: var(--text); }
.bk-modal::backdrop { background: rgba(42, 23, 48, .55); }
.bk-modal__in { background: var(--surface); border-radius: 22px; padding: 24px; display: grid; gap: 14px; box-shadow: 0 20px 50px rgba(42, 23, 48, .3); }
.bk-modal__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: .9; padding-top: 6px; }
.bk-modal__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-modal--end .bk-modal__in { justify-items: center; text-align: center; }
.bk-modal--sheet { max-width: 680px; }
.bk-modal--sheet .bk-modal__in { max-height: 84vh; overflow: auto; }
.bk-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bk-iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; flex: none; }
.bk-sheet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bk-sheet__list li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bk-sheet__list p { font-weight: 700; }
.bk-sheet__list a { font-size: 15px; }
.bk-num { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--primary); }
.bk-sheet__foot { font-size: 14px; color: var(--muted); }
.bk-eyebrow { font-size: 14px; font-weight: 800; color: var(--primary-ink); letter-spacing: .02em; }

/* 공고 대응표 단추, 알림 */
.bk-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--text);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(42, 23, 48, .28);
}
.bk-toast {
  position: fixed;
  left: 50%;
  bottom: 76px;
  transform: translateX(-50%);
  z-index: 40;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--text);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(42, 23, 48, .3);
}
.bk-toast[hidden] { display: none; }
.demo-notice { margin: 0; padding: 8px 16px 84px; text-align: center; font-size: 12px; color: var(--muted); }

/* 공통 쪽 머리 */
.bk-page { display: grid; gap: 18px; }
.bk-pagehead { display: grid; gap: 6px; max-width: 760px; }
.bk-pagehead--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.bk-pagehead--row > div:first-child { max-width: 760px; display: grid; gap: 6px; }
.bk-h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 60px; line-height: .8; padding-top: 6px; }
.bk-h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: .85; padding-top: 4px; }
.bk-h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.bk-lead { font-size: 17px; color: #4E3A55; }
.bk-lead--sm { font-size: 16px; margin-bottom: 12px; }
.bk-section { display: grid; gap: 4px; }
.bk-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.bk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.bk-card--method { border-top: 5px solid var(--accent); display: grid; align-content: start; gap: 6px; }
.bk-tagline { font-size: 15px; color: var(--muted); }
.bk-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* 배지 */
.bk-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--surface);
}
.bk-badge--wait { color: var(--muted); border-style: dashed; }
.bk-badge--assume { color: var(--warn); }
.bk-badge--mock { color: var(--accent-ink); }
.bk-badge--ok, .bk-badge--on { color: var(--ok); }
.bk-badge--warn, .bk-badge--before { color: var(--warn); }
.bk-badge--off { color: var(--muted); }
.bk-badge--after { color: var(--danger); }

/* 표 */
.bk-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.bk-table th, .bk-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bk-table thead th { background: #FBEAF1; font-size: 14px; color: var(--muted); }
.bk-table tbody tr:last-child > * { border-bottom: 0; }
.bk-table tbody th { font-weight: 800; white-space: nowrap; }

/* 경계 비교 */
.bk-recreated {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #075565;
  font-weight: 600;
}
.bk-recreated svg { flex: none; margin-top: 3px; }
.bk-hairwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.bk-compare { display: grid; gap: 8px; min-width: 0; }
.bk-compare__fig {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: #1B2556;
}
.bk-compare__fig svg { display: block; width: 100%; height: auto; }
.bk-compare__tag {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  font-weight: 800;
  font-size: 15px;
  pointer-events: none;
}
.bk-compare__tag--l { left: 12px; color: var(--warn); }
.bk-compare__tag--r { right: 12px; color: var(--accent-ink); }
.bk-compare__split { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; }
.bk-compare__line { position: absolute; top: 0; bottom: 0; left: -1.5px; width: 3px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(42, 23, 48, .25); }
.bk-compare__knob {
  position: absolute;
  top: 50%;
  left: 0;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: #FFFFFF;
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(42, 23, 48, .3);
  cursor: ew-resize;
}
.bk-compare__status { text-align: center; color: var(--muted); font-weight: 600; }
.bk-hairside .bk-card { display: grid; gap: 10px; }
.bk-hairside .bk-h2 { margin: 0; font-size: 34px; }
.bk-bgdot { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(42, 23, 48, .2); flex: none; }
.bk-bgdot--dark { background: #1B2556; }
.bk-bgdot--light { background: #FFF0B8; }
.bk-bgdot--pattern { background: conic-gradient(#FFD3E3 25%, #FFFFFF 0 50%, #FFD3E3 0 75%, #FFFFFF 0) 0 0 / 10px 10px; }

/* 인쇄 단계 전달 */
.bk-scenario { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.bk-scenario__now { font-weight: 700; color: var(--ok); }
.bk-scenario__now.is-alt { color: var(--warn); }
.bk-handoff { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.bk-print { margin: 0; display: grid; gap: 8px; }
.bk-paper { aspect-ratio: 2 / 3; background: #FFFFFF; border-radius: 6px; box-shadow: 0 14px 30px rgba(42, 23, 48, .18), 0 0 0 1px var(--line); display: grid; place-items: center; padding: 7%; }
.bk-paper svg { display: block; width: 100%; height: auto; }
.bk-print__cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--muted); font-weight: 600; }
.bk-print__size { display: inline-flex; gap: 6px; align-items: center; }
.bk-log__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk-log__head .bk-h2 { margin: 0; }
.bk-log__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.bk-log__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FCF5F8;
  border-left: 4px solid #E8DEE6;
}
.bk-log__row.is-key { background: var(--primary-soft); border-left-color: var(--primary); }
.bk-log__row.is-warn { background: #FFF4E0; border-left-color: var(--warn); }
.bk-log__t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); font-size: 15px; }
.bk-log__body { display: grid; min-width: 0; }
.bk-log__body span { color: var(--muted); font-size: 15px; }
.bk-chain { list-style: none; margin: 14px 0; padding: 0; display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px 0; }
.bk-chain__node {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 14px;
  min-width: 120px;
  position: relative;
  margin-right: 34px;
}
.bk-chain__node:not(:last-child)::after { content: "→"; position: absolute; right: -26px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; font-weight: 700; }
.bk-chain__node:last-child { margin-right: 0; }
.bk-chain__kind { font-size: 13px; font-weight: 800; }
.bk-chain__what { font-weight: 700; }
.bk-chain__node--old { background: #F1EAF0; color: #5E4A64; }
.bk-chain__node--file { background: var(--surface); border: 2px dashed #C9B3C6; color: var(--text); }
.bk-chain__node--new { background: var(--primary); color: #FFFFFF; }
.bk-chain__node--inside { background: var(--surface); border: 3px solid var(--primary); color: var(--primary-ink); }
.bk-mode[hidden] { display: none; }
.bk-mode__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

/* 관리자 */
.bk-savebox { display: grid; gap: 8px; justify-items: end; }
.bk-savebox__state { font-size: 15px; color: var(--ok); font-weight: 700; }
.bk-admin { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.bk-admin__main { display: grid; gap: 12px; min-width: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.bk-admin__side { display: grid; gap: 14px; min-width: 0; }
.bk-addbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bk-file { position: relative; overflow: hidden; cursor: pointer; }
.bk-file:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.bk-file__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bk-addbar__cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--muted); margin-left: auto; }
.bk-select, .bk-input {
  min-height: 44px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--surface);
  padding: 0 10px;
  font-size: 16px;
  max-width: 100%;
}
.bk-select--sm { min-height: 40px; font-size: 15px; width: 100%; }
.bk-agroup { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.bk-agroup__title { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 19px; font-weight: 800; }
.bk-agroup__title small { font-size: 14px; color: var(--muted); font-weight: 600; }
.bk-agroup__count { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: auto; }
.bk-acards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.bk-acard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #FFFBFD; }
.bk-acard__img { display: block; width: 64px; border: 3px solid #FFFFFF; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 5px rgba(42, 23, 48, .15); }
.bk-acard__img svg { display: block; width: 100%; height: 100%; }
.bk-acard__img--backgrounds { aspect-ratio: 268 / 370; }
.bk-acard__img--stickers { aspect-ratio: 1; background: #F9E2EC; padding: 4px; }
.bk-acard__body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.bk-acard__name { font-weight: 800; }
.bk-acard__meta { font-size: 14px; color: var(--muted); }
.bk-acard__acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.bk-mini { min-width: 44px; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 17px; }
.bk-mini--text { padding: 0 12px; font-size: 15px; }
.bk-mini--del { color: var(--danger); margin-left: auto; }
.bk-mini:disabled { opacity: .4; }
.bk-catrow { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.bk-catrow__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.bk-catrow__head small { color: var(--muted); font-weight: 600; font-size: 13px; }
.bk-catrow__always { font-size: 15px; color: var(--muted); }
.bk-catrow__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-catrow__dates label { display: grid; gap: 2px; font-size: 13px; color: var(--muted); font-weight: 700; min-width: 0; }
.bk-catrow__dates .bk-input { width: 100%; min-width: 0; font-size: 15px; }
.bk-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; cursor: pointer; position: relative; }
.bk-switch input { position: absolute; opacity: 0; width: 52px; height: 30px; margin: 0; cursor: pointer; }
.bk-switch__track { width: 52px; height: 30px; border-radius: 999px; background: #D9C9D3; position: relative; flex: none; transition: background .15s; }
.bk-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.bk-switch input:checked + .bk-switch__track { background: var(--primary); }
.bk-switch input:checked + .bk-switch__track::after { transform: translateX(22px); }
.bk-switch input:focus-visible + .bk-switch__track { outline: 3px solid var(--accent); outline-offset: 2px; }
.bk-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bk-stepper__btn { width: 52px; height: 52px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-size: 24px; font-weight: 700; }
.bk-stepper__val { font-family: var(--display); font-weight: 700; font-size: 60px; line-height: .8; padding-top: 8px; color: var(--primary); font-variant-numeric: tabular-nums; }
.bk-range { width: 100%; accent-color: var(--primary); height: 32px; }
.bk-range__ticks { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bk-limitsave { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }

/* 태블릿 이하 */
@media (max-width: 1080px) {
  .bk-head__in { flex-wrap: wrap; }
  .bk-nav { order: 3; width: 100%; margin-left: 0; }
  .bk-reset { margin-left: auto; }
  .bk-bar { flex-direction: column; }
  .bk-bar__acts { display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
  .bk-mode__grid { grid-template-columns: 1fr; }
  .bk-admin { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .bk-stage, .bk-hairwrap, .bk-handoff { grid-template-columns: 1fr; }
  .bk-handoff .bk-print { max-width: 420px; width: 100%; justify-self: center; }
  .bk-hairside .bk-seg--stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bk-hairside .bk-seg--stack > button { justify-content: center; text-align: center; padding: 0 6px; }
}

/* 모바일 */
@media (max-width: 560px) {
  .bk-band { font-size: 12px; }
  .bk-head__in { padding: 8px 16px; gap: 8px; }
  .bk-brand__name { font-size: 32px; }
  .bk-brand__sub { display: none; }
  .bk-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .bk-nav__link { justify-content: center; padding: 0 4px; font-size: 14px; text-align: center; line-height: 1.2; border-radius: 12px; }
  .bk-flow__in { padding: 8px 16px; gap: 6px; }
  .bk-flow__step { font-size: 13px; }
  .bk-flow__step:not(:last-child)::after { margin: 0 5px; }
  .bk-flow__step.is-ours { padding: 3px 4px 3px 10px; margin-right: 5px; }
  .bk-flow__step.is-ours + .bk-flow__step::before { margin-right: 5px; }
  .bk-flow__tag { font-size: 12px; padding: 0 6px; }
  .bk-flow__legend { margin-left: 0; font-size: 12.5px; }
  .bk-main { padding: 12px 16px 96px; }
  .bk-kiosk { gap: 12px; }
  .bk-timer { padding: 6px 12px 12px; }
  .bk-timer__num { font-size: 48px; min-width: 60px; }
  .bk-timer__label { font-size: 16px; }
  .bk-bar__acts { grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; }
  .bk-btn--kiosk { font-size: 17px; padding: 0 6px; min-height: 56px; gap: 4px; }
  .bk-btn--kiosk svg { display: none; }
  .bk-count { min-width: 22px; height: 22px; font-size: 13px; padding: 0 5px; }
  .bk-cutpick { gap: 6px; }
  .bk-cutpick__label { width: 100%; }
  .bk-cutpick__btn { width: 52px; height: 52px; }
  .bk-cutpick__zoom { padding: 0 12px; min-height: 52px; }
  .bk-panel { padding: 10px; }
  .bk-tab { font-size: 18px; gap: 6px; }
  .bk-tab svg { width: 20px; height: 20px; }
  .bk-grid--bg { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .bk-grid--st { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .bk-tile__name { font-size: 13.5px; }
  .bk-chip { font-size: 16px; padding: 0 12px; }
  .bk-seg > button { font-size: 16px; padding: 0 12px; }
  .bk-adjust__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-adj--del { grid-column: 1 / -1; }
  .bk-adj--arrow { width: auto; flex: 1; }
  .bk-swatch { width: 46px; height: 46px; }
  .bk-pane__row--wrap > .bk-pane__label { width: 100%; padding-top: 0; }
  .bk-h1 { font-size: 50px; }
  .bk-h2 { font-size: 36px; }
  .bk-lead { font-size: 16px; }
  .bk-pagehead--row > .bk-btn { width: 100%; }
  .bk-compare__tag { font-size: 13px; top: 8px; padding: 3px 9px; }
  .bk-compare__tag--l { left: 8px; }
  .bk-compare__tag--r { right: 8px; }
  .bk-compare__knob { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .bk-hairside .bk-seg--stack { grid-template-columns: 1fr; }
  .bk-hairside .bk-seg--stack > button { justify-content: flex-start; }
  .bk-scenario .bk-seg { display: grid; width: 100%; }
  .bk-log__row { grid-template-columns: 64px minmax(0, 1fr); }
  .bk-log__row .bk-badge { grid-column: 2; justify-self: start; }
  .bk-chain { flex-direction: column; gap: 26px; }
  .bk-chain__node { margin-right: 0; }
  .bk-chain__node:not(:last-child)::after { content: "↓"; right: auto; left: 22px; top: auto; bottom: -26px; transform: none; }
  .bk-tabs--plain { display: grid; grid-auto-flow: row; grid-template-columns: 1fr; width: 100%; }
  .bk-table--cards thead, .bk-table--check thead { display: none; }
  .bk-table--cards, .bk-table--check, .bk-table--cards tbody, .bk-table--check tbody { display: block; }
  .bk-table--cards tr, .bk-table--check tr { display: grid; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .bk-table--cards tbody tr:last-child, .bk-table--check tbody tr:last-child { border-bottom: 0; }
  .bk-table--cards th, .bk-table--cards td, .bk-table--check th, .bk-table--check td { padding: 0; border: 0; }
  .bk-table--check td { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .bk-table--check td::before { content: attr(data-label); font-weight: 700; color: var(--muted); font-size: 15px; }
  .bk-savebox { justify-items: stretch; width: 100%; }
  .bk-admin__main { padding: 12px; }
  .bk-addbar > .bk-btn { flex: 1; }
  .bk-addbar__cat { margin-left: 0; width: 100%; justify-content: space-between; }
  .bk-acards { grid-template-columns: 1fr; }
  .bk-fab { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-timer__fill, .bk-switch__track, .bk-switch__track::after { transition: none; }
}
