/* 스마트 케어라벨 시연 화면 (carelabel) */
.cl {
  --bg: #F2F0EA;
  --surface: #FFFFFF;
  --surface2: #F8F6F1;
  --text: #161B26;
  --muted: #586070;
  --line: #DCD7CB;
  --ok: #2F7D4F;
  --warn: #9A5B0B;
  --danger: #B42318;
  --ink: #12161F;
  --radius: 12px;
  --display: "IBM Plex Sans KR", "Pretendard Variable", Pretendard, system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
:where(.cl) a { color: inherit; }
:where(.cl) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.cl) img { max-width: 100%; }
.cl-mono { font-family: var(--mono); letter-spacing: 0; }
.cl [hidden] { display: none !important; }
.cl-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.cl-eyebrow a { text-decoration: none; }
.cl-h1 { margin: 0; font-family: var(--display); font-size: 26px; line-height: 1.25; font-weight: 700; }
.cl-h2 { margin: 0 0 12px; font-family: var(--display); font-size: 17px; font-weight: 600; }
.cl-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.cl-lead { margin: 0; font-size: 15px; }
.cl :focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, white); outline-offset: 2px; }

/* 안내 띠 */
.cl-band {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 28px; padding: 3px 12px;
  background: #E5E1D6; color: var(--muted); font-size: 12px; text-align: center;
}
.cl-band__reset {
  flex: none; white-space: nowrap;
  border: 1px solid #C9C3B5; background: transparent; border-radius: 999px;
  padding: 1px 10px; font-size: 12px; cursor: pointer; color: var(--text);
}

/* 버튼 */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.cl .cl-btn { color: #fff; }
.cl .cl-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.cl .cl-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.cl-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.cl-btn--block { width: 100%; }
.cl-btn:hover { filter: brightness(1.06); }
.cl-btn--ghost:hover { border-color: var(--text); filter: none; }
.cl-iconbtn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.cl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-chip {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer;
}
.cl-chip:hover { border-color: var(--primary); color: var(--primary); }

/* 사용자 화면: 데스크톱은 왼쪽 라벨 + 오른쪽 휴대폰 */
.cl-stage { display: block; }
.cl-side { display: none; }
.cl-phone { background: var(--bg); }
@media (min-width: 1000px) {
  .cl--site {
    background:
      repeating-linear-gradient(90deg, rgba(22, 27, 38, .022) 0 1px, transparent 1px 4px),
      repeating-linear-gradient(0deg, rgba(22, 27, 38, .018) 0 1px, transparent 1px 4px),
      var(--bg);
  }
  .cl-stage {
    display: grid; grid-template-columns: 330px 414px; gap: 72px;
    justify-content: center; align-items: start; padding: 36px 24px 16px;
  }
  .cl-side { display: block; position: sticky; top: 24px; }
  .cl-phone {
    border: 11px solid var(--ink); border-radius: 46px; overflow: hidden;
    box-shadow: 0 30px 60px -28px rgba(18, 22, 31, .55), 0 0 0 1px #2b313c;
  }
  .cl-phone__screen { height: 812px; overflow-y: auto; scrollbar-width: thin; }
}

/* 실물 케어라벨 */
.cl-label__tag {
  position: relative; padding: 30px 24px 22px; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px),
    #FBFAF6;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -24px rgba(0, 0, 0, .45);
  outline: 1px dashed #CFC8B8; outline-offset: -8px;
  text-align: center;
}
.cl-label__hole { position: absolute; top: 10px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 4px; background: #E4DFD3; }
.cl-label__org { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.cl-label__name { margin: 8px 0 0; font-family: var(--display); font-size: 21px; font-weight: 700; }
.cl-label__model { margin: 2px 0 10px; font-size: 12px; color: var(--muted); }
.cl-label__care { display: flex; justify-content: center; gap: 2px; color: var(--ink); }
.cl-label__care .cl-care-ic { width: 34px; height: 34px; }
.cl-label__qr { width: 176px; height: 176px; margin: 14px auto 8px; background: #fff; padding: 6px; border-radius: 4px; }
.cl-label__qr svg { display: block; width: 100%; height: 100%; }
.cl-label__scan { margin: 0; font-size: 12px; color: var(--muted); }
.cl-side__lead { margin: 18px 0 2px; font-size: 14px; font-weight: 600; }
.cl-side__url { margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.cl-side__nav { display: grid; gap: 2px; }
.cl-side__k { margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-side__link { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.cl-side__link:hover, .cl-side__link.is-on { background: rgba(22, 27, 38, .06); }
.cl-side__link .cl-mono { font-size: 12px; color: var(--muted); }
.cl-side__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* 품목 첫 화면 */
.cl-hub__head {
  position: relative; padding: 22px 20px 0; color: #fff;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(255, 255, 255, .12), transparent 60%),
    var(--primary);
  overflow: hidden;
}
.cl-hub__head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: var(--bg);
}
.cl-hub__org { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.cl-hub__eyebrow { margin: 18px 0 2px; font-size: 12px; letter-spacing: .08em; color: color-mix(in srgb, var(--accent) 70%, white); font-weight: 600; }
.cl-hub__name { margin: 0; font-family: var(--display); font-size: 30px; line-height: 1.2; font-weight: 700; }
.cl-hub__model { margin: 4px 0 0; font-size: 13px; opacity: .8; }
.cl-hub__art {
  position: relative; z-index: 1; width: 236px; height: 236px; margin: 8px auto 0;
  border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFFFFF, #E7E3D9 70%);
  display: grid; place-items: center; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .45);
}
.cl-hub__art img { width: 190px; height: auto; }
.cl-hub__badge {
  position: absolute; right: 8px; top: 18px; padding: 3px 9px; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.cl-hub__empty { color: var(--muted); font-size: 13px; }
.cl-hub__menu { display: grid; gap: 10px; padding: 18px 16px 8px; }
.cl-menu {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  text-decoration: none; text-align: left; cursor: pointer;
}
.cl-menu:hover { border-color: var(--primary); }
.cl-menu__no {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary); font-weight: 600; font-size: 14px;
}
.cl-menu__txt { flex: 1; display: grid; }
.cl-menu__txt b { font-size: 17px; }
.cl-menu__txt small { font-size: 13px; color: var(--muted); }
.cl-menu__go { flex: none; color: var(--muted); }
.cl-menu--talk .cl-menu__no { background: #3A2A00; color: #FFD84D; }
.cl-dlabel { margin: 12px 16px 0; padding: 18px; border-radius: 14px; background: var(--surface2); border: 1px dashed #CFC8B8; }
.cl-dlabel__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 14px; }
.cl-dlabel__list div { min-width: 0; }
.cl-dlabel__list dt { font-size: 12px; color: var(--muted); }
.cl-dlabel__list dd { margin: 0; font-size: 14px; font-weight: 600; }
.cl-dlabel__care, .cl-care { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 6px; }
.cl-dlabel__care li, .cl-care li { display: grid; justify-items: center; gap: 2px; text-align: center; font-size: 12px; color: var(--muted); }
.cl-dlabel__care .cl-care-ic, .cl-care .cl-care-ic { color: var(--ink); }
.cl-care li { padding: 12px 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.cl-hub__foot { padding: 22px 20px 34px; font-size: 13px; color: var(--muted); }
.cl-hub__foot p { margin: 0; }
.cl-hub__admin { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--primary); }

/* 하위 화면 공통 */
.cl-appbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  min-height: 60px; padding: 8px 14px 8px 6px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.cl-appbar__back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.cl-appbar__title { flex: 1; min-width: 0; }
.cl-appbar__item { margin: 0; font-size: 12px; color: var(--muted); }
.cl-appbar h1 { margin: 0; font-family: var(--display); font-size: 18px; line-height: 1.3; }
.cl-page { padding: 16px 16px 36px; display: grid; gap: 22px; }
.cl-sec { display: grid; gap: 8px; }
.cl-next { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 360도 뷰어 */
.cl-viewer { display: grid; gap: 10px; }
.cl-viewer__stage {
  position: relative; aspect-ratio: 520 / 580; border-radius: 18px; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 38%, #FFFFFF, #E9E5DC 75%);
  border: 1px solid var(--line);
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.cl-viewer__stage:active { cursor: grabbing; }
.cl-viewer__stage.is-zoomed { touch-action: none; cursor: move; }
.cl-viewer__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transform-origin: 50% 50%; pointer-events: none; -webkit-user-drag: none;
}
.cl-viewer__hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: rgba(18, 22, 31, .82); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: opacity .4s;
}
.cl-viewer__hint.is-gone { opacity: .0; }
.cl-viewer__stage.is-zoomed .cl-viewer__hint { opacity: 1; }
.cl-viewer__deg, .cl-viewer__zoom {
  position: absolute; top: 12px; padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); font-size: 12px; font-weight: 600;
}
.cl-viewer__deg { left: 12px; }
.cl-viewer__zoom { right: 12px; }
.cl-viewer__bar { display: flex; align-items: center; gap: 6px; }
.cl-vbtn {
  flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; font-size: 20px; line-height: 1;
}
.cl-vbtn:hover { border-color: var(--primary); color: var(--primary); }
.cl-viewer__range { flex: 1; min-width: 60px; accent-color: var(--primary); height: 44px; }
.cl-viewer__sep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.cl-viewer__views { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-viewer-empty {
  display: grid; justify-items: center; gap: 4px; padding: 48px 16px; border-radius: 18px;
  border: 1px dashed #C9C2B2; color: var(--muted); text-align: center;
}
.cl-viewer-empty p { margin: 6px 0 0; font-weight: 600; color: var(--text); }
.cl-viewer--mini .cl-viewer__stage { border-radius: 12px; }
.cl-viewer--mini .cl-viewer__hint { font-size: 11px; padding: 4px 10px; bottom: 8px; }
.cl-viewer--mini .cl-vbtn { width: 36px; height: 36px; }

/* 원단 스와치 */
.cl-mats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-mat { display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cl-mat__part { margin: 0; font-size: 12px; font-weight: 600; color: var(--primary); }
.cl-mat__name { margin: 0; font-weight: 700; }
.cl-mat__note { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.cl-swatch { flex: none; width: 56px; height: 56px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .08); }
.cl-swatch--twill { background: repeating-linear-gradient(45deg, #2C3D63 0 3px, #1F2D4B 3px 6px); }
.cl-swatch--reflect { background: repeating-linear-gradient(90deg, #D6DCE4 0 3px, #9AA5B4 3px 5px), #ccc; }
.cl-swatch--lining { background: linear-gradient(135deg, #DCE0E7, #B3BAC7 60%, #D8DCE3); }
.cl-swatch--padding { background: repeating-linear-gradient(0deg, transparent 0 13px, #D6D0C3 13px 14px), radial-gradient(circle at 30% 30%, #FFFFFF, #ECE8DF); }
.cl-swatch--zip { background: linear-gradient(90deg, #2A3550 0 38%, transparent 38% 62%, #2A3550 62%), repeating-linear-gradient(0deg, #1B1F27 0 3px, #A4ACB8 3px 5px); }
.cl-swatch--snap { background: radial-gradient(circle at 50% 50%, #E3E7ED 0 22%, #9AA4B2 23% 30%, #1D2A47 31%); }

/* 착용 안내 영상(예시) */
.cl-video { display: grid; gap: 8px; }
.cl-video__screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 85%, black), var(--ink));
}
.cl-video__scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .5s; }
.cl-video__scene.is-on { opacity: 1; }
.cl-video__art { width: 46%; height: auto; }
.cl-video__step { position: absolute; top: 10px; left: 12px; color: #fff; font-size: 12px; opacity: .8; }
.cl-video__cap {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-size: 13px; font-weight: 600;
}
.cl-video__play {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}
.cl-video__play.is-playing { opacity: .0; }
.cl-video__screen:hover .cl-video__play.is-playing, .cl-video__play.is-playing:focus-visible { opacity: .9; }
.cl-video__bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.cl-video__track { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cl-video__track span { display: block; height: 100%; width: 0; background: var(--primary); }
.cl-video__title { margin: 0; font-weight: 700; }
.cl-video__title small { margin-left: 6px; font-weight: 500; font-size: 12px; color: var(--muted); }
.cl-guides { display: grid; gap: 8px; }
.cl-guide { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cl-guide summary { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 0 16px; font-weight: 700; cursor: pointer; list-style: none; }
.cl-guide summary::-webkit-details-marker { display: none; }
.cl-guide summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.cl-guide[open] summary::after { content: "−"; }
.cl-guide summary .cl-mono { color: var(--primary); font-size: 13px; }
.cl-guide p { margin: 0; padding: 0 16px 16px; color: #333A47; }

/* A/S 신청 */
.cl-form { display: grid; gap: 18px; }
.cl-form__lead { margin: 0; font-size: 14px; color: var(--muted); }
.cl-fs { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 14px; min-width: 0; }
.cl-fs legend { padding: 0 6px; font-family: var(--display); font-weight: 600; }
.cl-field { display: grid; gap: 6px; min-width: 0; }
.cl-field > span { font-size: 13px; font-weight: 600; }
.cl-field em, .cl-check em { font-style: normal; color: var(--danger); }
.cl-field small { font-size: 12px; color: var(--muted); }
.cl-field input[type="text"], .cl-field input[type="tel"], .cl-field input[type="email"], .cl-field input[type="search"], .cl-field select, .cl-field textarea, .cl-addrow input, .cl-addacc input, .cl-addacc select, .cl-toolbar select, .cl-search input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #CCC6B8; border-radius: 10px; background: #fff;
}
.cl-field textarea { resize: vertical; }
.cl-field input[type="color"] { width: 100%; height: 44px; padding: 2px; border: 1px solid #CCC6B8; border-radius: 10px; background: #fff; }
.cl-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-seg--3 { grid-template-columns: repeat(3, 1fr); }
.cl-seg label, .cl-check { position: relative; cursor: pointer; }
.cl-seg input, .cl-check input, .cl-carepick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-seg span {
  display: grid; place-items: center; min-height: 46px; padding: 0 8px; border: 1px solid #CCC6B8; border-radius: 10px;
  font-weight: 600; font-size: 14px; text-align: center; background: #fff;
}
.cl-seg input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, white); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.cl-seg input:focus-visible + span, .cl-check input:focus-visible + span, .cl-carepick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary) 50%, white); }
.cl-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-check span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #CCC6B8; background: #fff; font-size: 14px;
}
.cl-check input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.cl-check--wide span { border-radius: 10px; width: 100%; font-weight: 600; }
.cl-upload {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 1px dashed #BDB6A6;
  border-radius: 12px; background: var(--surface2); cursor: pointer; font-size: 14px; color: var(--muted);
}
.cl-upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-consent { padding: 14px 16px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); display: grid; gap: 10px; }
.cl-consent__text { margin: 0; font-size: 13px; color: var(--muted); }
.cl-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: #FDECEA; color: var(--danger); font-weight: 600; font-size: 14px; }
.cl-done { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.cl-done:focus { outline: none; }
.cl-done__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.cl-done__title { margin: 0; font-family: var(--display); font-size: 21px; }
.cl-done__no { margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--surface2); border: 1px dashed #BDB6A6; font-size: 17px; font-weight: 600; }
.cl-done__list { width: 100%; margin: 6px 0 0; display: grid; gap: 6px; text-align: left; }
.cl-done__list div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 14px; }
.cl-done__list dt { color: var(--muted); }
.cl-done__list dd { margin: 0; font-weight: 600; }
.cl-done__note { margin: 0; font-size: 13px; color: var(--muted); }
.cl-done .cl-next { width: 100%; }

/* 관리자 */
.cl--admin { background: #F4F3EF; }
.cl-anav {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 10px 24px;
  background: var(--ink); color: #fff;
}
.cl-anav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; color: #fff !important; }
.cl-anav__nav { display: flex; gap: 4px; flex-wrap: wrap; }
.cl-anav__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; text-decoration: none; color: #C9CED8 !important; font-weight: 600; font-size: 14px; }
.cl-anav__nav a.is-on, .cl-anav__nav a:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.cl-anav__me { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.cl-anav__role { color: #9AA3B2; }
.cl-anav__site { color: #fff !important; font-weight: 600; }
.cl-admin__main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 60px; display: grid; gap: 20px; }
.cl-ahead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cl-ahead__lead { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.cl-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.cl-toolbar select { width: auto; min-width: 150px; }
.cl-toolbar .cl-btn { margin-left: auto; }
.cl-search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.cl-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.cl-search input { padding-left: 36px; }
.cl-tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cl-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 12px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.cl-table td { padding: 12px 14px; border-bottom: 1px solid #ECE8DF; vertical-align: middle; }
.cl-table tr:last-child td { border-bottom: 0; }
.cl-table tr.is-new td { background: #FFFBEA; }
.cl-table small { color: var(--muted); }
.cl-cell-item { display: flex; align-items: center; gap: 12px; }
.cl-cell-item b { display: block; }
.cl-cell-item small { display: block; font-size: 12px; }
.cl-thumb { flex: none; width: 52px; height: 58px; border-radius: 8px; background: #EFECE4; display: grid; place-items: center; overflow: hidden; font-size: 10px; color: var(--muted); text-align: center; line-height: 1.2; }
.cl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cl-orgtag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cl-orgtag::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.cl-state { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cl-state--ok { background: #E5F2EA; color: var(--ok); }
.cl-state--warn { background: #FBF0DD; color: var(--warn); }
.cl-state--muted { background: #ECEAE4; color: var(--muted); }
.cl-state--new { background: #FFE9A8; color: #6B4E00; }
.cl-actions { white-space: nowrap; text-align: right; }
.cl-actions .cl-btn { margin-left: 4px; }
.cl-empty { margin: 0; padding: 28px; text-align: center; color: var(--muted); }
.cl-howto { padding: 20px; border-radius: 14px; border: 1px dashed #C9C2B2; }
.cl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
.cl-steps li { counter-increment: s; display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--muted); }
.cl-steps li::before { content: "0" counter(s); font-family: var(--mono); font-weight: 600; color: var(--primary); }
.cl-steps b { color: var(--text); font-size: 14px; }

/* 품목 편집 */
.cl-editor { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.cl-editor__form { display: grid; gap: 16px; min-width: 0; }
.cl-editor__preview { position: sticky; top: 20px; }
.cl-card { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; min-width: 0; scroll-margin-top: 16px; }
.cl-card__title { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; }
.cl-card__title .cl-mono { font-size: 12px; color: var(--primary); padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--primary) 10%, white); }
.cl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cl-switch { display: flex; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; font-size: 14px; position: relative; }
.cl-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cl-switch__ui { flex: none; width: 46px; height: 28px; border-radius: 999px; background: #CFC9BC; position: relative; transition: background .2s; }
.cl-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.cl-switch input:checked + .cl-switch__ui { background: var(--ok); }
.cl-switch input:checked + .cl-switch__ui::after { transform: translateX(18px); }
.cl-switch input:focus-visible + .cl-switch__ui { outline: 3px solid color-mix(in srgb, var(--primary) 50%, white); }
.cl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #EFECE4; }
.cl-tab { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.cl-tab.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.cl-pane { display: grid; gap: 12px; }
.cl-pane[hidden] { display: none; }
.cl-upbox { display: grid; justify-items: center; gap: 10px; padding: 26px 16px; border: 2px dashed #C9C2B2; border-radius: 14px; background: var(--surface2); text-align: center; color: var(--muted); }
.cl-upbox[hidden] { display: none; }
.cl-upbox p { margin: 0; color: var(--text); }
.cl-upbox .cl-note { color: var(--muted); }
.cl-upbox .cl-btn--ghost { cursor: pointer; }
.cl-proc { list-style: none; margin: 0; padding: 16px; border-radius: 14px; background: var(--surface2); display: grid; gap: 10px; }
.cl-proc[hidden] { display: none; }
.cl-proc li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.cl-proc__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9C2B2; flex: none; position: relative; }
.cl-proc li.is-now { color: var(--text); font-weight: 600; }
.cl-proc li.is-now .cl-proc__dot { border-color: var(--primary); border-top-color: transparent; animation: cl-spin .7s linear infinite; }
.cl-proc li.is-done { color: var(--text); }
.cl-proc li.is-done .cl-proc__dot { border-color: var(--ok); background: var(--ok); }
.cl-proc li.is-done .cl-proc__dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes cl-spin { to { transform: rotate(360deg); } }
.cl-seq { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.cl-seq[hidden] { display: none; }
.cl-seq__side { display: grid; gap: 10px; min-width: 0; justify-items: start; }
.cl-seq__side .cl-film { width: 100%; }
.cl-seq__meta { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-film { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 3px; padding: 8px; border-radius: 10px; background: #EFECE4; }
.cl-film img { width: 100%; height: auto; aspect-ratio: 520 / 580; background: #fff; border-radius: 3px; }
.cl-guidebox { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface2); }
.cl-guidebox summary { min-height: 46px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.cl-guidebox ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; color: #333A47; }
.cl-mediarow { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-media { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line); }
.cl-media--add { display: grid; place-items: center; border: 1px dashed #BDB6A6; background: var(--surface2); font-size: 13px; color: var(--muted); cursor: pointer; }
.cl-caregrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cl-carepick { position: relative; cursor: pointer; }
.cl-carepick span { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-align: center; }
.cl-carepick small { font-size: 12px; line-height: 1.3; }
.cl-carepick input:checked + span { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, white); box-shadow: inset 0 0 0 1px var(--primary); }
.cl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tagchip { display: inline-flex; align-items: center; gap: 2px; min-height: 34px; padding: 0 4px 0 12px; border-radius: 999px; background: #EFECE4; font-size: 13px; font-weight: 600; }
.cl-tagchip.is-new { background: #FFE9A8; }
.cl-tagchip button { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; color: var(--muted); font-size: 16px; }
.cl-tagchip button:hover { background: rgba(0, 0, 0, .08); color: var(--danger); }
.cl-addrow { display: flex; gap: 8px; }
.cl-addrow input { min-height: 40px; max-width: 260px; }
.cl-qrsec { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; }
.cl-qrbox { width: 168px; height: 168px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.cl-qrbox svg { display: block; width: 100%; height: 100%; }
.cl-qrbox__empty { font-size: 13px; color: var(--muted); }
.cl-qrsec__side { display: grid; gap: 8px; min-width: 0; }
.cl-qrsec__k { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.cl-qrsec__url { margin: 0; font-size: 16px; font-weight: 600; word-break: break-all; }
.cl-savebar {
  position: sticky; bottom: 0; z-index: 4; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0;
  background: linear-gradient(transparent, #F4F3EF 30%);
}
.cl-mini { border-radius: 22px; overflow: hidden; border: 7px solid var(--ink); background: var(--bg); }
.cl-mini__head { padding: 16px 14px 18px; background: var(--primary); color: #fff; }
.cl-mini__org { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.cl-mini__org [hidden] { display: none; }
.cl-mini__name { margin: 12px 0 0; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.25; }
.cl-mini__model { margin: 2px 0 0; font-size: 12px; opacity: .8; }
.cl-mini__menu { list-style: none; margin: 0; padding: 10px; display: grid; gap: 6px; }
.cl-mini__menu li { padding: 10px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }

/* A/S 접수 관리 */
.cl-orgtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; }
.cl-orgtab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.cl-orgtab[style]::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.cl-orgtab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cl-orgtab .cl-mono { font-size: 12px; opacity: .7; }
.cl-defect { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 6px; background: #F1EEE6; font-size: 12px; }
.cl-statussel { min-height: 36px; padding: 0 8px; border-radius: 8px; border: 1px solid #CCC6B8; background: #fff; font-size: 13px; font-weight: 600; }

/* 설정 */
.cl-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 12px; }
.cl-theme { border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cl-theme.is-new { box-shadow: 0 0 0 2px #FFD54A; }
.cl-theme__preview { display: flex; align-items: center; gap: 10px; padding: 18px; background: var(--primary); color: #fff; font-weight: 700; font-family: var(--display); }
.cl-theme__body { padding: 16px; display: grid; gap: 12px; }
.cl-theme__body .cl-btn { justify-self: start; cursor: pointer; }
.cl-theme__count { margin: 0; font-size: 13px; color: var(--muted); }
.cl-gap { margin-top: 32px; }
.cl-addacc { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1fr auto; gap: 8px; margin-top: 10px; }
.cl-table--perm td:not(:first-child), .cl-table--perm th:not(:first-child) { text-align: center; }
.cl-perm input { width: 20px; height: 20px; accent-color: var(--ink); }
.cl-perm label { display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }

/* 공고 대응표·모달 */
.cl-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
}
.cl-sheet, .cl-modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.cl-sheet::backdrop, .cl-modal::backdrop { background: rgba(18, 22, 31, .5); }
.cl-sheet { width: min(560px, 100vw - 24px); margin: auto; }
.cl-sheet__in { background: var(--surface); border-radius: 18px; padding: 20px; max-height: min(82vh, 720px); overflow-y: auto; }
.cl-sheet__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cl-sheet__head h2 { margin: 0; font-family: var(--display); font-size: 21px; }
.cl-sheet__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.cl-sheet__list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ECE8DF; }
.cl-sheet__no { flex: none; font-size: 13px; color: var(--primary); font-weight: 600; padding-top: 2px; }
.cl-sheet__need { margin: 0; font-weight: 600; }
.cl-sheet__go { display: inline-block; margin-top: 2px; font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; }
.cl-sheet__foot { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.cl-modal { width: min(380px, 100vw - 32px); margin: auto; }
.cl-modal__in { background: var(--surface); border-radius: 18px; padding: 22px; display: grid; gap: 12px; text-align: center; justify-items: center; }
.cl-modal__in .cl-btn { width: 100%; }
.cl-modal__title { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; }
.cl-modal__body { margin: 0; color: var(--muted); font-size: 14px; }
.cl-modal__code { margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--surface2); font-size: 13px; word-break: break-all; }
.cl-modal--qr .cl-qrbox { width: 200px; height: 200px; }
.cl-modal--qr .cl-row { justify-content: center; width: 100%; }
.cl-modal--qr .cl-row .cl-btn { width: auto; flex: 1; }

.cl-toast {
  position: fixed; left: 50%; bottom: 76px; z-index: 50; transform: translate(-50%, 12px); opacity: 0;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); transition: opacity .25s, transform .25s;
}
.cl-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.demo-notice { padding: 18px 16px 84px; font-size: 12px; color: var(--muted); text-align: center; }
.cl--admin .demo-notice { padding-top: 0; }

/* 좁은 화면 */
@media (max-width: 520px) {
  .cl-band { font-size: 11px; justify-content: space-between; text-align: left; }
}
@media (max-width: 999px) {
  .cl-hub__admin { display: inline-block; }
}
@media (max-width: 960px) {
  .cl-editor { grid-template-columns: 1fr; }
  .cl-editor__preview { position: static; order: -1; }
  .cl-mini { max-width: 320px; }
  .cl-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .cl-anav { padding: 10px 16px; gap: 8px; }
  .cl-anav__me { margin-left: 0; width: 100%; justify-content: space-between; order: 3; display: none; }
  .cl-anav__nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .cl-anav__nav a { flex: none; }
  .cl-admin__main { padding: 20px 16px 60px; }
  .cl-h1 { font-size: 23px; }
  .cl-ahead .cl-btn { width: 100%; }
  .cl-toolbar .cl-btn { margin-left: 0; }
  .cl-search { max-width: none; }
  .cl-tablewrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .cl-table thead { display: none; }
  .cl-table, .cl-table tbody, .cl-table tr, .cl-table td { display: block; width: 100%; }
  .cl-table tr { margin-bottom: 10px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .cl-table tr.is-new { background: #FFFBEA; }
  .cl-table td { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 8px 0; text-align: right; }
  .cl-table td[data-label]::before { content: attr(data-label); flex: none; font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; }
  .cl-table--items td[data-label="품목"] { text-align: left; }
  .cl-table--items td[data-label="품목"]::before { display: none; }
  .cl-table tr.is-new td { background: transparent; }
  .cl-table--req td[data-label="불량 유형"] { flex-wrap: wrap; }
  .cl-actions { justify-content: flex-end !important; flex-wrap: wrap; }
  .cl-table--perm tr { display: grid; grid-template-columns: 1fr; }
  .cl-table--perm td { justify-content: space-between; }
  .cl-table--perm td:first-child { font-weight: 700; text-align: left; }
  .cl-table--perm td.cl-perm { padding: 0; }
  .cl-table--perm td.cl-perm .cl-sr { position: static !important; width: auto; height: auto; clip: auto; font-size: 13px; color: var(--muted); }
  .cl-table--perm td.cl-perm label { display: flex; width: 100%; justify-content: space-between; flex-direction: row-reverse; height: 40px; }
  .cl-grid2 { grid-template-columns: 1fr; }
  .cl-seq { grid-template-columns: 1fr; }
  .cl-seq__viewer { max-width: 260px; }
  .cl-qrsec { grid-template-columns: 1fr; }
  .cl-steps { grid-template-columns: 1fr; }
  .cl-addacc { grid-template-columns: 1fr 1fr; }
  .cl-addacc input[type="email"] { grid-column: span 2; }
  .cl-addacc .cl-btn { grid-column: span 2; }
  .cl-themes { grid-template-columns: 1fr; }
  .cl-savebar .cl-btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cl *, .cl *::before, .cl *::after { animation: none !important; transition: none !important; }
}
