.s2 {
  
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-press: #3730a3;
  --accent-soft: #eef2ff;
  --accent-soft-2: #e0e7ff;
  --accent-text: #4338ca;

  
  --bg: #ffffff;
  --bg-subtle: #fbfbfc;
  --bg-panel: #f7f7f9;
  --surface: #ffffff;
  --border: #ebebef;
  --border-strong: #e1e1e8;
  --border-input: #d8d8e0;

  --text: #18181b;
  --text-2: #3f3f46;
  --text-muted: #686872;
  --text-subtle: #6b6b75;
  --text-faint: #6d6d77;

  
  --green: #15a36a;
  --green-soft: #e7f6ee;
  --amber: #d97706;
  --amber-soft: #fef3e2;
  --red: #e5484d;

  
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  
  --sh-xs: 0 1px 2px rgba(24, 24, 27, 0.05);
  --sh-sm: 0 1px 3px rgba(24, 24, 27, 0.06), 0 1px 2px rgba(24, 24, 27, 0.04);
  --sh-md: 0 4px 12px -2px rgba(24, 24, 27, 0.08), 0 2px 6px -2px rgba(24, 24, 27, 0.05);
  --sh-lg: 0 12px 32px -8px rgba(24, 24, 27, 0.14), 0 4px 12px -4px rgba(24, 24, 27, 0.08);
  --sh-pop: 0 16px 48px -12px rgba(24, 24, 27, 0.22);

  --sidebar-w: 244px;
  --topbar-h: 56px;

  font-synthesis: none;
}
.s2 * { box-sizing: border-box; }
.s2, .s2 {
  margin: 0;
  padding: 0;
  height: 100%;
}
.s2 {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", system-ui, sans-serif;
  background: var(--bg-subtle);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  letter-spacing: -0.011em;
}
.s2 #root { height: 100%; }
.s2 ::selection { background: var(--accent-soft-2); }
.s2 button { font-family: inherit; cursor: pointer; }
.s2 input, .s2 textarea, .s2 select { font-family: inherit; }
.s2 ::-webkit-scrollbar { width: 11px; height: 11px; }
.s2 ::-webkit-scrollbar-thumb {
  background: #d7d7de;
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
.s2 ::-webkit-scrollbar-thumb:hover { background: #c0c0c9; background-clip: padding-box; }
.s2 ::-webkit-scrollbar-track { background: transparent; }
.s2 .app {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-subtle);
}

/* ── 계정 + 메뉴: 글로벌 상단바에 삽입 (display:contents 호스트로 .s2 스타일 재사용) ── */
.s2.s2-navhost { display: contents; }
/* 메뉴 항목을 글로벌바 높이(52px)에 고정 → 활성 밑줄이 헤더 하단 라인에 붙는다 */
.s2 .topnav-links { display: flex; align-items: stretch; gap: 2px; height: 52px; }
.s2 .topnav-links .nav-item { width: auto; height: 100%; font-size: 13px; padding: 0 11px; border-radius: 0; }
.s2 .topnav-links .nav-item:hover { background: transparent; color: var(--text); }
.s2 .topnav-links .fav-wrap { display: flex; align-items: stretch; height: 100%; }
.s2 .topnav-acct { position: relative; }
.s2 .fav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  width: 288px; max-height: 60vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.14); padding: 10px;
}
.s2 .fav-menu .nav-fav-label { padding: 2px 6px 8px; }
.s2 .fav-menu .nav-fav-list { max-height: none; }
.s2 .topnav-acct .user-chip { width: auto; }
.s2 .user-chip.user-chip-icon { padding: 3px; border-radius: 99px; gap: 0; }
.s2 .topnav-acct .user-chip:hover, .s2 .topnav-acct .user-chip.open { background: transparent; }
.s2 .acct-menu.acct-menu-top { left: auto; right: 0; top: calc(100% + 8px); width: 260px; }
.s2 .sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 2px;
}
.s2 .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 14px;
}
.s2 .brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #7c6df0);
  display: grid; place-items: center;
  box-shadow: var(--sh-sm);
  flex-shrink: 0;
}
.s2 .brand-mark svg { display: block; }
.s2 .brand-name {
  font-weight: 680;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.s2 .brand-name .dot { color: var(--accent); }
.s2 .nav-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
  padding: 14px 8px 6px;
  text-transform: none;
}
.s2 .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  width: 100%;
  text-align: left;
  transition: background 0.12s, color 0.12s;
  position: relative;
}
.s2 .nav-item:hover { background: #f3f3f3; color: var(--text); }
.s2 .nav-item.active { background: transparent; color: var(--accent-text); font-weight: 600; }
.s2 .nav-item.active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px;
  background: var(--accent); pointer-events: none;
}
/* 사이드바 즐겨찾기 섹션 */
.s2 .nav-fav { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; flex: 1; }
.s2 .nav-fav-label { font-size: 11px; font-weight: 600; color: var(--text-subtle); letter-spacing: 0.02em; padding: 0 8px 6px; }
.s2 .nav-fav-list { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; min-height: 0; }
.s2 .nav-fav-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 7px 9px; border: 0; background: transparent; border-radius: var(--r-md);
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background .12s, color .12s;
}
.s2 .nav-fav-item:hover { background: #f3f3f3; color: var(--text); }
.s2 .nav-fav-dot { width: 8px; height: 8px; border-radius: 99px; background: #1ec997; flex-shrink: 0; }
.s2 .nav-fav-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2 .nav-fav-guide { align-items: flex-start; }
.s2 .nav-fav-guide > svg { margin-top: 2px; }
.s2 .nav-fav-texts { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.s2 .nav-fav-cat { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2 .nav-fav-item { cursor: pointer; position: relative; }
.s2 .nav-fav-item[draggable="true"] { cursor: grab; }
.s2 .nav-fav-item[draggable="true"]:active { cursor: grabbing; }
.s2 .nav-fav-item.is-dragging { opacity: 0.4; }
.s2 .nav-fav-item.drop-above::before,
.s2 .nav-fav-item.drop-below::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--accent); border-radius: 2px; z-index: 3; pointer-events: none;
}
.s2 .nav-fav-item.drop-above::before { top: -3px; }
.s2 .nav-fav-item.drop-below::after { bottom: -3px; }
.s2 .nav-fav-empty { font-size: 12px; color: var(--text-faint); line-height: 1.5; padding: 4px 9px; }
.s2 .nav-item.active svg { color: var(--accent); }
.s2 .nav-item svg { color: var(--text-subtle); flex-shrink: 0; }
.s2 .nav-item .count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-panel);
  border-radius: 99px;
  padding: 1px 7px;
}
.s2 .nav-item.active .count { background: var(--accent-soft-2); color: var(--accent-text); }
.s2 .sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.s2 .sidebar-head {
  margin-top: 0;
  padding-top: 2px;
  padding-bottom: 12px;
  border-top: 0;
  border-bottom: 0;
  margin-bottom: 6px;
}
.s2 .user-chip { width: 100%; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.s2 .user-chip.open { background: var(--bg-panel); }

/* 계정 다크 드롭다운 */
.s2 .acct-menu {
  position: absolute;
  top: calc(100% - 2px); left: 8px; right: 8px;
  z-index: 80;
  background: #1f1f24;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 34px rgba(0,0,0,.34), 0 0 0 0.5px rgba(0,0,0,.4);
  color: #ececf1;
  animation: acctIn .12s ease;
}
@keyframes acctIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.s2 .acct-menu-head { padding: 10px 10px 11px; }
.s2 .acct-name-row { display: flex; align-items: center; gap: 8px; }
.s2 .acct-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.s2 .acct-role {
  font-size: 11px; font-weight: 600; color: #c9c3ff;
  background: rgba(99,91,255,.28); border: 1px solid rgba(124,109,240,.4);
  padding: 1.5px 7px; border-radius: 99px;
}
.s2 .acct-team { font-size: 12.5px; color: #c7c7d1; margin-top: 6px; }
.s2 .acct-email { font-size: 12px; color: #8b8b97; margin-top: 2px; }
.s2 .acct-menu-sep { height: 1px; background: rgba(255,255,255,.09); margin: 4px 2px 6px; }
.s2 .acct-menu-item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 9px 10px; border: 0; background: transparent;
  border-radius: 8px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; color: #d6d6de; text-align: left;
  transition: background .1s, color .1s;
}
.s2 .acct-menu-item svg { color: #9a9aa6; flex-shrink: 0; }
.s2 .acct-menu-item:hover { background: #4E4CDB; color: #fff; }
.s2 .acct-menu-item:hover svg { color: #fff; }
.s2 .user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r-md);
  transition: background 0.12s;
  cursor: pointer;
}
.s2 .user-chip:hover { background: var(--bg-panel); }
.s2 .avatar {
  width: 28px; height: 28px; border-radius: 99px;
  background: #e7e7ee; color: var(--text-2);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
/* 사용자(김배너) 구분용 컬러 — 관리자(박관리)는 중립 그레이 */
.s2 .avatar.avatar-user { background: #4E4CDB; color: #fff; }
.s2 .user-meta { line-height: 1.25; min-width: 0; }
.s2 .user-meta .nm { font-size: 12.5px; font-weight: 600; color: var(--text); }
.s2 .user-meta .em { font-size: 11px; color: var(--text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s2 .main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.s2 .topbar {
  height: var(--topbar-h);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  z-index: 5;
}
.s2 .crumbs { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.s2 .topbar-nav { display: flex; align-items: center; gap: 2px; }
.s2 .topbar-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; background: transparent;
  border-radius: 6px; cursor: pointer; color: var(--text-2);
  transition: background .12s, color .12s;
}
.s2 .topbar-nav-btn:hover:not(:disabled) { background: var(--bg-panel); color: var(--text); }
.s2 .topbar-nav-btn:disabled { color: var(--text-faint); cursor: default; }
.s2 .crumbs .c { color: var(--text-muted); font-weight: 500; }
.s2 .crumbs .c.cur { color: var(--text); font-weight: 600; }
.s2 .crumbs button.c-link {
  border: 0; background: transparent; padding: 2px 5px; margin: 0 -2px;
  font: inherit; cursor: pointer; border-radius: 6px;
  color: var(--text-muted); transition: color .12s, background .12s;
}
.s2 .crumbs button.c-link:hover { color: var(--text); background: #f3f3f3; }
.s2 .crumbs .sep { color: var(--text-faint); }
.s2 .topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.s2 .content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
.s2 .content-pad { padding: 36px 40px 32px; max-width: 1180px; margin: 0 auto; }
.s2 .content-pad.content-wide { max-width: none; margin: 0; }
.s2 .content-narrow { max-width: 880px; }
.s2 .content.dashboard-chat-content {
  overflow: hidden;
}
.s2 .dashboard-chat-pad {
  max-width: none;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.s2 .dashboard-chat-pad.has-category-panel {
  grid-template-columns: 184px minmax(0, 1fr) 360px;
}
.s2 .dashboard-chat-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 24px 32px 40px;
}
.s2 .dashboard-chat-pad.has-category-panel .dashboard-chat-main {
  padding-left: 24px;
}
.s2 .dashboard-category-panel {
  position: relative;
  top: 0;
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  background: var(--surface);
}
.s2 .dashboard-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 4px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}
.s2 .dashboard-category-title span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.s2 .dashboard-category-list { display: flex; flex-direction: column; gap: 4px; }
.s2 .dashboard-category-item {
  min-width: 0;
  width: 100%;
  height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.s2 .dashboard-category-item:hover { background: var(--bg-panel); color: var(--text-2); }
.s2 .dashboard-category-item.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
/* 2차 분류를 고른 상태의 부모 대분류 — 선택 배경 없이 굵게만 */
.s2 .dashboard-category-item.has-sub { color: var(--text-2); font-weight: 700; }
.s2 .dashboard-subcategory-list { display: flex; flex-direction: column; gap: 1px; padding-left: 12px; margin-bottom: 4px; }
.s2 .dashboard-sub-item { height: 28px; font-size: 12.5px; padding: 0 10px; }
.s2 .dashboard-category-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2 .dashboard-category-item em { justify-self: end; color: var(--text-faint); font-size: 10.5px; font-style: normal; font-weight: 600; }
.s2 .dashboard-category-item svg { color: var(--accent); }
.s2 .dashboard-category-panel-tree .dashboard-category-all { margin-bottom: 8px; }
.s2 .dashboard-category-trail { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 0 2px; }
.s2 .dashboard-category-trail button {
  max-width: 100%; min-width: 0; height: 24px; padding: 0 7px; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; color: var(--text-muted); font: inherit; font-size: 11px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
.s2 .dashboard-category-trail button.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); font-weight: 700; }
.s2 .dashboard-category-tree-head { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 6px; margin: 8px 0; padding: 0 2px; }
.s2 .dashboard-category-tree-head button {
  width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; color: var(--text-muted); cursor: pointer;
}
.s2 .dashboard-category-tree-head button:disabled { opacity: .35; cursor: default; }
.s2 .dashboard-category-tree-head b { color: var(--text-2); font-size: 12px; }
.s2 .dashboard-category-tree-head span { color: var(--text-muted); font-size: 11px; }
.s2 .dashboard-category-filter {
  height: 30px; display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--text-muted);
}
.s2 .dashboard-category-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .dashboard-category-filter input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 12px; color: var(--text); }
.s2 .dashboard-category-overflow { padding: 8px 4px; color: var(--text-muted); font-size: 11px; line-height: 1.35; }
.s2 .dashboard-chat-panel {
  position: relative;
  top: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}
.s2 .dashboard-chat-panel .chatp { height: 100%; }
.s2 .content-pad.content-center {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100%; max-width: none; margin: 0; padding: 40px;
}
.s2 .content-pad.content-center > * { width: 100%; }
.s2 .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px;
  height: 38px; padding: 0 16px;
  border-radius: 6px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.13s, border-color 0.13s, box-shadow 0.13s, transform 0.05s;
  white-space: nowrap;
}
.s2 .btn:active { transform: translateY(0.5px); }
.s2 .btn svg { flex-shrink: 0; }
.s2 .btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-xs); }
.s2 .btn-primary:hover { background: var(--accent-hover); }
.s2 .btn-primary:active { background: var(--accent-press); }
.s2 .btn-secondary { background: var(--surface); color: var(--text-2); border-color: var(--border-input); box-shadow: none; }
.s2 .btn-secondary:hover { background: var(--bg-panel); border-color: var(--border-strong); }
.s2 .btn-ghost { background: transparent; color: var(--text-2); }
.s2 .btn-ghost:hover { background: var(--bg-panel); }
.s2 .btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.s2 .btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 6px; }
.s2 .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.s2 .btn-block { width: 100%; }
.s2 .icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  transition: background 0.12s, color 0.12s;
}
.s2 .icon-btn:hover { background: var(--bg-panel); color: var(--text); }
.s2 .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}
.s2 .page-head { margin-bottom: 28px; }
.s2 .page-title { font-size: 23px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.s2 .title-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: -2px; border: 0; background: transparent;
  padding: 0; cursor: pointer; color: var(--text-muted); flex-shrink: 0;
  transition: color .12s;
}
.s2 .title-back-btn:hover { color: var(--text); }

/* 만들기 화면 헤더 — 카테고리 제목 옆에 유형 드롭다운 */
.s2 .page-head.create-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.s2 .create-head-type { display: flex; align-items: center; gap: 8px; }
/* 헤더 안 유형 드롭다운 — 박스 유지, 제목 옆에 맞게 크기만 조정 */
.s2 .create-head .type-select { min-width: 200px; }
.s2 .create-head .type-select-btn { height: 38px; }

/* ── 유형 선택 드롭다운 ── */
.s2 .type-select { position: relative; display: inline-block; min-width: 220px; }
.s2 .type-select-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; height: 40px; padding: 0 12px 0 14px;
  border: 1px solid var(--border-input); background: #fff; border-radius: 8px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.s2 .type-select-btn:hover { border-color: var(--accent); }
.s2 .type-select.open .type-select-btn { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .type-select-cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2 .type-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 5px; max-height: 320px; overflow-y: auto;
}
.s2 .type-select-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 10px; border: 0; background: transparent; border-radius: 7px;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer;
  text-align: left; transition: background .1s;
}
.s2 .type-select-item:hover { background: var(--bg-panel); }
.s2 .type-select-item.on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.s2 .type-select-item-sub { color: var(--text-subtle); font-weight: 500; }
.s2 .page-sub { font-size: 14px; color: var(--text-muted); margin: 6px 0 0; line-height: 1.5; }
.s2 .section-title {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em; margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.s2 .pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px;
  background: var(--bg-panel); color: var(--text-muted);
  border: 1px solid var(--border);
}
.s2 .pill.accent { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-soft-2); }
.s2 .pill.green { background: var(--green-soft); color: var(--green); border-color: #cdeede; }
.s2 .pill-dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.s2 .empty-wrap {
  min-height: calc(100vh - var(--topbar-h) - 80px);
  display: grid; place-items: center;
}
.s2 .empty {
  text-align: center; max-width: 460px;
  display: flex; flex-direction: column; align-items: center;
}
.s2 .empty-art {
  width: 132px; height: 96px; margin-bottom: 26px;
  position: relative;
}
.s2 .empty-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.s2 .empty-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0 0 24px; }
.s2 .field { margin-bottom: 18px; }
.s2 .field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.s2 .field-hint { font-size: 12px; color: var(--text-subtle); margin-top: 6px; line-height: 1.45; }
.s2 .input {
  width: 100%; height: 42px;
  border: 1px solid var(--border-input); border-radius: var(--r-md);
  padding: 0 13px; font-size: 14px; color: var(--text);
  background: var(--surface);
  transition: border-color 0.13s, box-shadow 0.13s;
  outline: none;
}
.s2 .input::placeholder { color: var(--text-faint); }
.s2 .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 textarea.input { height: auto; padding: 11px 13px; line-height: 1.55; resize: vertical; min-height: 84px; }
.s2 .input-group { display: flex; align-items: stretch; }
.s2 .input-prefix {
  display: flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--border-input); border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--bg-panel); color: var(--text-muted);
  font-size: 13.5px; font-weight: 500;
}
.s2 .input-group .input { border-radius: 0 var(--r-md) var(--r-md) 0; }
.s2 .chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.s2 .chip {
  font-size: 12.5px; font-weight: 500;
  padding: 5px 11px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border-input);
  color: var(--text-2); transition: all 0.12s;
  display: inline-flex; align-items: center; gap: 6px;
}
.s2 .chip:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s2 .chip svg { color: var(--text-subtle); }
.s2 .chip:hover svg { color: var(--accent); }
.s2 .spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--accent-soft-2);
  border-top-color: var(--accent);
  border-radius: 99px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity:0; transform: scale(0.96); } 100% { opacity:1; transform: scale(1); } }
.s2 .fade-up { animation: fadeUp 0.4s cubic-bezier(0.22,1,0.36,1) both; }
.s2 .fade-in { animation: fadeIn 0.4s ease both; }
.s2 .toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 100;
}
.s2 .toast {
  display: flex; align-items: center; gap: 11px;
  background: #18181b; color: #fff;
  padding: 12px 16px 12px 14px; border-radius: var(--r-lg);
  box-shadow: var(--sh-pop); font-size: 13.5px; font-weight: 500;
  animation: pop 0.3s cubic-bezier(0.22,1,0.36,1) both;
}
.s2 .toast .tcheck { width: 20px; height: 20px; border-radius: 99px; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.s2 .divider { height: 1px; background: var(--border); border: none; margin: 0; }
.s2 .kbd {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-panel); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px;
  font-family: inherit;
}
.s2 .guide-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
  box-shadow: none;
}
.s2 .guide-card:hover { border-color: var(--border-strong); box-shadow: none; transform: translateY(-2px); }
.s2 .guide-card-thumb { position: relative; height: 150px; background: var(--bg-panel); padding: 0; border-bottom: 1px solid var(--border); }
.s2 .guide-fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 26px; height: 26px; border-radius: 8px; padding: 0;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-subtle); cursor: pointer;
  transition: color .12s, background .12s, border-color .12s, opacity .12s;
  opacity: 0;
}
.s2 .guide-card:hover .guide-fav { opacity: 1; }
.s2 .guide-fav.on { opacity: 1; }
.s2 .guide-fav:hover { background: #fff; color: var(--text-2); border-color: var(--border-strong); }
.s2 .guide-fav.on { color: #f5a623; background: #fff; }
.s2 .guide-fav.on svg { fill: #f5a623; }
.s2 .guide-card-body { padding: 14px 14px 12px; }
/* 카테고리 폴더 그리드 */
.s2 .folder-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; gap: 24px 22px; }
.s2 .folder-card {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 14px 18px; box-shadow: var(--sh-xs); font: inherit; color: inherit;
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.s2 .folder-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.s2 .folder-preview {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
  aspect-ratio: 2/1; padding: 12px; border-radius: 12px;
  background: var(--bg-subtle);
}
.s2 .folder-thumb { border-radius: 8px; overflow: hidden; background: var(--bg-panel); border: 1px solid var(--border); }
.s2 .folder-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2 .folder-thumb.empty { background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--border); }
.s2 .folder-meta { display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 0 12px; }
.s2 .folder-dot { width: 9px; height: 9px; border-radius: 99px; background: #1ec997; flex-shrink: 0; }
.s2 .folder-name { font-size: 16.5px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.s2 .folder-count { font-size: 13px; color: var(--text-muted); margin-left: auto; padding-left: 12px; white-space: nowrap; flex-shrink: 0; }
.s2 .folder-preview-wrap { position: relative; }
.s2 .folder-fav {
  position: absolute; top: 2px; right: 2px; z-index: 2;
  width: 26px; height: 26px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-subtle); cursor: pointer;
  opacity: 0; transition: color .12s, background .12s, border-color .12s, opacity .12s;
}
.s2 .folder-card:hover .folder-fav { opacity: 1; }
.s2 .folder-fav:hover { color: var(--text-2); border-color: var(--border-strong); }
.s2 .folder-fav.on { opacity: 1; color: #f5a623; }
.s2 .folder-fav.on svg { fill: #f5a623; }
.s2 .sample-db { margin-top: 24px; }
.s2 .sample-db-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.s2 .sample-db-head h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; color: var(--text); }
.s2 .sample-db-head p { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.s2 .sample-db-stats { padding: 8px 11px; border-radius: 8px; background: var(--accent-soft); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.s2 .sample-db-stats b { color: var(--accent-text); }
.s2 .sample-db-search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--text-muted); background: #fff; margin-bottom: 20px; }
.s2 .sample-db-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .sample-db-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text); }
/* 3차 카테고리 — 알약형 칩 */
.s2 .sample-cat-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.s2 .sample-cat { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.s2 .sample-cat:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.s2 .sample-cat.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.s2 .sample-cat b { font-size: 12.5px; font-weight: 600; }
.s2 .sample-db-section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.s2 .sample-db-section-title > span { min-width: 0; font-size: 14px; font-weight: 700; color: var(--text-2); }
.s2 .sample-crumb-sep { margin: 0 6px; color: var(--text-faint); font-style: normal; font-weight: 400; }
.s2 .sample-db-total { flex-shrink: 0; color: var(--text-muted); font-size: 13px; }
.s2 .sample-db-total b { color: var(--text-2); }
.s2 .sample-db-pagesize { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.s2 .sample-db-pagesize select {
  height: 30px; padding: 0 24px 0 8px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a96' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 6px center;
}
.s2 .sample-pagination { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 18px; }
.s2 .sample-page, .s2 .sample-page-nav {
  min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  font: inherit; font-size: 12.5px; color: var(--text); cursor: pointer;
}
.s2 .sample-page:hover:not(.on), .s2 .sample-page-nav:hover:not(:disabled) { background: var(--bg-panel); }
.s2 .sample-page.on { background: var(--accent); color: #fff; font-weight: 700; }
.s2 .sample-page-nav { color: var(--text-muted); }
.s2 .sample-page-nav:disabled { color: var(--text-faint); cursor: default; }
.s2 .sample-page-gap { min-width: 30px; height: 30px; display: grid; place-items: center; color: var(--text-muted); font-size: 13px; background: none; border: none; padding: 0; border-radius: 5px; cursor: pointer; transition: background .15s, color .15s; }
.s2 .sample-page-gap:hover { background: var(--bg-panel); color: var(--accent); }
.s2 .sample-page-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border); }
.s2 .sample-page-jump input[type=number] { width: 54px; height: 30px; border: 1px solid var(--border); border-radius: 5px; text-align: center; font-size: 13px; padding: 0 4px; background: var(--bg-input, var(--bg-panel)); color: var(--text); outline: none; -moz-appearance: textfield; }
.s2 .sample-page-jump input[type=number]::-webkit-outer-spin-button,
.s2 .sample-page-jump input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s2 .sample-page-jump input[type=number]:focus { border-color: var(--accent); }
.s2 .sample-page-jump button { height: 30px; padding: 0 9px; border-radius: 5px; border: 1px solid var(--border); font-size: 12px; background: var(--bg-panel); color: var(--text); cursor: pointer; white-space: nowrap; font: inherit; }
.s2 .sample-page-jump button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.s2 .sample-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 1px 3px 5px 1px; }
.s2 .sample-product { min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.s2 .sample-product:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.s2 .sample-product.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .sample-product-image { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--bg-panel); }
.s2 .sample-product-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.s2 .sample-product-image-fallback {
  position: absolute; inset: 0; display: none; place-items: center; padding: 12px;
  color: var(--text-muted); background: var(--bg-panel); font-size: 11px; text-align: center;
}
.s2 .sample-product-image.is-error .sample-product-image-fallback { display: grid; }
.s2 .sample-product-image em { position: absolute; right: 5px; bottom: 5px; padding: 2px 6px; border-radius: 99px; background: rgba(22,22,28,.72); color: #fff; font-size: 9.5px; font-style: normal; }
.s2 .sample-product-name { display: block; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 700; }
.s2 .sample-product-meta { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 9.5px; }
.s2 .sample-product-path { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-faint); font-size: 9px; }
.s2 .sample-image-picker { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--bg-subtle); }
.s2 .sample-db-image-pick .sample-image-picker { margin-top: 0; background: transparent; padding: 0; }
.s2 .sample-db-image-pick .sample-nukki-page-head + .sample-image-picker .sample-image-picker-head { display: none; }
.s2 .sample-db.sample-db-image-pick { margin-top: 24px; }
.s2 .sample-db-image-pick .sample-nukki-page-head { margin-bottom: 14px; }
.s2 .sample-db-image-pick .sample-nukki-page-titles {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.s2 .sample-db-image-pick .sample-nukki-page-titles h2 { margin: 0; font-size: 18px; font-weight: 700; }
.s2 .sample-db-image-pick .sample-nukki-page-titles p { margin: 0; font-size: 13px; color: var(--text-muted); }
.s2 .sample-image-picker-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; font-size: 12px; color: var(--text-muted); }
.s2 .sample-image-picker-head div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.s2 .sample-image-picker-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13px; }
.s2 .sample-image-picker-head span { font-size: 10.5px; }
.s2 .sample-image-picker-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.s2 .sample-pick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.s2 .sample-pick-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; text-align: left; font: inherit;
}
.s2 .sample-pick-chip.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .sample-pick-chip-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s2 .sample-pick-chip-meta b {
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; color: var(--text-2);
}
.s2 .sample-pick-chip-meta span { font-size: 10.5px; color: var(--text-muted); }
.s2 .sample-pick-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.s2 .sample-pick-card {
  position: relative; overflow: hidden; min-width: 0;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.s2 .sample-pick-card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .sample-pick-card img {
  width: 100%; aspect-ratio: 1; object-fit: contain; display: block; background: var(--bg-panel);
  pointer-events: none; /* 이미지가 버튼 클릭 가로채지 않도록 */
}
.s2 .sample-pick-card .sample-image-role { bottom: 8px; z-index: 1; }
.s2 .sample-pick-card-actions {
  position: absolute; inset: auto 0 0 0; top: auto; z-index: 3;
  display: flex; flex-direction: row;
  background: transparent;
  pointer-events: auto;
  transition: height .15s ease, opacity .15s ease;
  height: 28px; /* 항상 보이는 얇은 띠 — 터치/클릭 대상 유지 */
}
.s2 .sample-pick-card:hover .sample-pick-card-actions,
.s2 .sample-pick-card:focus-within .sample-pick-card-actions {
  height: 60%;
}
.s2 .sample-pick-card.just-picked .sample-pick-card-actions {
  pointer-events: none; opacity: 0;
}
.s2 .sample-pick-card-actions button {
  flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0;
  background: rgba(15, 15, 20, .52); color: #fff;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: -.02em; cursor: pointer;
}
.s2 .sample-pick-card-actions button + button { border-left: 1px solid rgba(255, 255, 255, .28); }
.s2 .sample-pick-card-actions button:hover { background: rgba(15, 15, 20, .70); }
.s2 .sample-pick-card-actions button.on { background: rgba(78, 76, 219, .85); color: #fff; }
@media (hover: none) {
  .s2 .sample-pick-card-actions {
    height: 40%; pointer-events: auto; padding: 0; background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .s2 .sample-pick-card-actions { transition: none; }
}
.s2 .sample-pick-final {
  margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.s2 .sample-pick-final-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.s2 .sample-pick-final-head b { font-size: 13px; color: var(--text-2); }
.s2 .sample-pick-final-head span { font-size: 11px; color: var(--text-muted); }
.s2 .sample-pick-final-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.s2 .sample-pick-final-item {
  position: relative; width: 64px; height: 64px; padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel);
}
.s2 .sample-pick-final-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2 .sample-pick-final-item em {
  position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px;
  background: rgba(15,15,20,.7); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px;
}
.s2 .sample-pick-final .sample-image-picker-foot { margin-top: 0; padding-top: 10px; }
.s2 .sample-image-role {
  position: absolute; left: 6px; bottom: 22px; padding: 1px 5px; border-radius: 4px;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
}
.s2 .chatp-inline-types { max-width: 320px; padding: 4px 0; }
.s2 .sample-image-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.s2 .sample-image { position: relative; min-width: 0; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; }
.s2 .sample-image.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.s2 .sample-image img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; border-radius: 6px; }
.s2 .sample-image small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 9px; }
.s2 .sample-image-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: var(--accent); color: #fff; }
.s2 .sample-selection-bar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: var(--sh-md); backdrop-filter: blur(8px); }
.s2 .sample-selection-bar > div:first-child { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.s2 .sample-selection-bar b { color: var(--text-2); font-size: 13px; }
.s2 .sample-selection-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 10.5px; }
.s2 .sample-clear { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 11px; cursor: pointer; }
.s2 .sample-actions { display: flex; gap: 6px; }
.s2 .sample-actions button { padding: 8px 10px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.s2 .sample-actions button:hover { background: var(--accent-2); }
.s2 .sample-actions button:disabled { background: var(--bg-panel); color: var(--text-faint); cursor: default; }
.s2 .sample-empty-state { display: flex; align-items: center; justify-content: center; min-height: 180px; margin-bottom: 12px; border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-subtle); color: var(--text-muted); font-size: 13px; }
.s2 .sample-db-loading, .s2 .sample-db-error { margin-top: 28px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--text-muted); background: var(--surface); font-size: 13px; }
.s2 .sample-db-error { color: #b42318; border-color: #fecdca; background: #fffbfa; }
/* 1280px 이하: 채팅 패널을 오른쪽 열에서 하단 서랍으로 전환 — 겹침·클릭 차단 방지 */
@media (max-width: 1280px) {
  .s2 .content.dashboard-chat-content { overflow-y: auto; overflow-x: hidden; }
  .s2 .dashboard-chat-pad { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .s2 .dashboard-chat-pad.has-category-panel { grid-template-columns: 1fr; }
  .s2 .dashboard-chat-main { height: auto; overflow: visible; padding: 0 24px 20px; }
  .s2 .dashboard-category-panel {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  /* 카테고리 라벨이 잘리지 않도록 칩 형태로 */
  .s2 .dashboard-category-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .s2 .dashboard-category-item { width: auto; height: 30px; white-space: nowrap; }
  .s2 .dashboard-category-panel-tree .dashboard-category-list { flex-direction: column; flex-wrap: nowrap; max-height: 280px; overflow: auto; }
  .s2 .dashboard-category-panel-tree .dashboard-category-item { width: 100%; }
  .s2 .dashboard-subcategory-list { display: flex; flex-wrap: wrap; gap: 2px; padding-left: 0; margin-bottom: 0; }
  .s2 .dashboard-chat-panel {
    position: relative;
    top: auto;
    height: 520px;
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .s2 .sample-cat-list, .s2 .sample-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s2 .sample-image-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .s2 .sample-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s2 .sample-selection-bar { flex-wrap: wrap; }
  .s2 .sample-actions { width: 100%; }
  .s2 .sample-actions button { flex: 1; }
}
/* 배너 만들기(카테고리 선택형 · merged/guide2.jsx) — 좌측 카테고리 패널 + 우측 본문.
   패널 룩은 에디터의 .panel.left / .cat-list / .cat-item (styles.css) 을 그대로 재사용하고,
   여기서는 2단 레이아웃과 항목 폭·선택 상태만 맞춘다. 각 열이 따로 스크롤한다(에디터와 동일). */
.s2 .content.catpanel-content { display: grid; grid-template-columns: 224px minmax(0, 1fr); overflow: hidden; }
.s2 .catpanel { min-height: 0; }
.s2 .catpanel .panel-section { border-bottom: 0; padding: 16px 12px; }
.s2 .catpanel-item { grid-template-columns: minmax(0, 1fr) auto; height: 34px; font-size: 13px; }
.s2 .catpanel-item .catpanel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2 .catpanel-item.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.s2 .catpanel-item.is-active svg { color: var(--accent); }
.s2 .catpanel-item.is-dim .catpanel-name { color: var(--text-faint); }
.s2 .catpanel-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* LLM 채팅 패널 (merged/chat-panel.jsx) — 헤더 고정 · 대화 목록만 스크롤 · 입력창 하단 고정 */
.s2 .chatp { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.s2 .chatp-head {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; height: 52px; border-bottom: 1px solid var(--border);
}
.s2 .chatp-title { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.s2 .chatp-title svg { color: var(--accent); }
.s2 .chatp-tags { min-width: 0; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; }
.s2 .chatp-ctx { padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-weight: 600; }
.s2 .chatp-tag {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--bg-panel);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}
.s2 .chatp-reset { margin-left: auto; border: 1px solid var(--border); background: #fff; border-radius: 6px; padding: 5px 10px; font: inherit; font-size: 11.5px; color: var(--text-muted); cursor: pointer; }
.s2 .chatp-reset:hover { border-color: var(--border-strong); color: var(--text-2); }
/* 대화·입력창은 가운데 760px 로 모은다(넓은 화면에서 말풍선이 양 끝까지 퍼지지 않게) */
.s2 .chatp-list { flex: 1; min-height: 0; overflow-y: auto; padding: 24px max(20px, calc(50% - 380px)); display: flex; flex-direction: column; gap: 14px; }
.s2 .chatp-turn { display: flex; }
.s2 .chatp-turn.user { justify-content: flex-end; }
.s2 .chatp-turn.notice { justify-content: center; }
.s2 .chatp-bubble { max-width: 78%; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.s2 .chatp-turn.user .chatp-bubble { background: var(--bg-panel); color: var(--text); border-radius: 12px 12px 4px 12px; }
.s2 .chatp-turn.assistant .chatp-bubble { background: transparent; padding: 0; max-width: 100%; color: var(--text); }
.s2 .chatp-notice { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; background: #fffbfa; border: 1px solid #fecdca; color: #b42318; font-size: 12px; }
.s2 .chatp-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.s2 .chatp-typing span { width: 6px; height: 6px; border-radius: 99px; background: var(--text-faint); animation: chatp-blink 1.2s infinite; }
.s2 .chatp-typing span:nth-child(2) { animation-delay: .2s; }
.s2 .chatp-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chatp-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.s2 .chatp-intro { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px; }
.s2 .chatp-intro-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.s2 .chatp-intro b { font-size: 16px; letter-spacing: -.02em; color: var(--text); }
.s2 .chatp-intro span { font-size: 13px; color: var(--text-muted); }
.s2 .chatp-intro-cart { margin-top: 24px; }
.s2 .chatp-sugs { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.s2 .chatp-sug { border: 1px solid var(--border); background: #fff; border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.s2 .chatp-sug:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
/* 상품 카드 말풍선 */
.s2 .chatp-product { max-width: 240px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.s2 .chatp-product img { display: block; width: 100%; height: 160px; object-fit: cover; background: var(--bg-panel); }
.s2 .chatp-product-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; }
.s2 .chatp-product-body b { font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--text); }
.s2 .chatp-product-body span { font-size: 11.5px; color: var(--text-muted); }
.s2 .chatp-product-thumbs { display: flex; gap: 5px; max-width: 100%; padding-top: 3px; overflow-x: auto; scrollbar-width: thin; }
.s2 .chatp-product-thumb { flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-panel); }
.s2 .chatp-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s2 .sample-product-image-strip { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; gap: 3px; overflow: hidden; pointer-events: none; }
.s2 .sample-product-image-strip img { flex: 0 0 28px; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 4px; object-fit: cover; background: var(--bg-panel); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.s2 .chatp-picks {
  max-width: 280px; padding: 10px; border: 1px solid var(--border); border-radius: 12px 12px 4px 12px;
  background: #fff; box-shadow: var(--sh-xs);
}
.s2 .chatp-picks > span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.s2 .chatp-picks-names {
  margin: 0; padding-left: 18px; color: var(--text-2); font-size: 12px; line-height: 1.45;
}
.s2 .chatp-picks-names li { margin: 0 0 4px; }
.s2 .chatp-picks-names li:last-child { margin-bottom: 0; }
.s2 .chatp-cut-picks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 280px; }
.s2 .chatp-pick-thumb {
  position: relative; width: 72px; height: 72px; padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel);
}
.s2 .chatp-pick-thumb.is-nukki {
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e8e8ec 25%, transparent 25%),
    linear-gradient(-45deg, #e8e8ec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e8e8ec 75%),
    linear-gradient(-45deg, transparent 75%, #e8e8ec 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
}
.s2 .chatp-pick-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2 .chatp-pick-thumb.is-nukki img { object-fit: contain; }
.s2 .chatp-pick-thumb em {
  position: absolute; left: 4px; bottom: 4px; padding: 0 5px; border-radius: 4px;
  background: rgba(15,15,20,.7); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px;
}
.s2 .chatp-pick-remove {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 20px; height: 20px; padding: 0; border: 0; border-radius: 99px;
  display: grid; place-items: center;
  background: rgba(15, 15, 20, .72); color: #fff; cursor: pointer;
  opacity: 0;
}
.s2 .chatp-pick-thumb:hover .chatp-pick-remove,
.s2 .sample-pick-final-item:hover .chatp-pick-remove { opacity: 1; }
.s2 .chatp-pick-remove:hover { background: rgba(15, 15, 20, .9); }
@media (hover: none) {
  .s2 .chatp-pick-remove { opacity: 1; }
}
/* 배너 유형 칩 · 이미지 선택 (입력창 위) */
.s2 .chatp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.s2 .chatp-cart .chatp-actions { padding: 0; }
.s2 .chatp-action { padding: 7px 14px; border: 1px solid var(--accent); border-radius: 999px; background: #fff; color: var(--accent-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.s2 .chatp-action:hover { background: var(--accent-soft); }
.s2 .chatp-picker { padding: 10px 12px 4px; }
/* 대화 흐름 안에 뜨는 이미지 확인창 — 말풍선처럼 카드로 감싼다(입력창 안에 있을 때와 구분) */
.s2 .chatp-turn .chatp-picker { width: 100%; max-width: 320px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--sh-xs); }
.s2 .chatp-picker-head { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.s2 .chatp-picker-head span { color: var(--text-muted); font-weight: 400; }
.s2 .chatp-picker-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.s2 .chatp-thumb { position: relative; flex: 0 0 auto; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel); cursor: pointer; }
.s2 .chatp-thumb.on { border: 2px solid var(--accent); }
.s2 .chatp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.s2 .chatp-thumb-check { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 99px; background: var(--accent); color: #fff; }
.s2 .chatp-picker-go { width: 100%; height: 36px; margin-top: 8px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.s2 .chatp-picker-go:hover:not(:disabled) { background: var(--accent-2); }
.s2 .chatp-picker-go:disabled { background: var(--bg-panel); color: var(--text-faint); cursor: default; }
.s2 .chatp-picker-cancel { width: 100%; margin-top: 4px; padding: 6px 0; border: 0; background: transparent; color: var(--text-muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.s2 .chatp-picker-cancel:hover { color: var(--text-2); }
/* 채팅 담기 창 — 가운데 sample-cart 와 동기화 */
.s2 .chatp-cart {
  margin: 8px 12px 0; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.s2 .chatp-cart-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  color: var(--text-2); font-size: 12px; font-weight: 700;
}
.s2 .chatp-cart-clear {
  margin-left: auto; padding: 0; border: 0; background: transparent;
  color: var(--text-muted); font: inherit; font-size: 11.5px; cursor: pointer;
}
.s2 .chatp-cart-clear:hover { color: var(--text-2); }
.s2 .chatp-cart-list { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.s2 .chatp-cart-empty { width: 100%; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.s2 .chatp-cart-hint { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
.s2 .chatp-cart-item {
  display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
  padding: 7px 10px 7px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-panel);
}
.s2 .chatp-cart-item i {
  flex: 0 0 auto;
  width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-size: 10px; font-style: normal; font-weight: 700;
}
.s2 .chatp-cart-item b {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-2); font-size: 11.5px; font-weight: 600;
}
.s2 .chatp-cart-item em { flex: 0 0 auto; color: var(--text-muted); font-size: 10px; font-style: normal; }
.s2 .chatp-cart-item button {
  flex: 0 0 auto;
  width: 18px; height: 18px; padding: 0; border: 0; border-radius: 99px; background: transparent;
  color: var(--text-muted); cursor: pointer; display: grid; place-items: center;
}
.s2 .chatp-cart-item button:hover { background: #fee4e2; color: #b42318; }
.s2 .chatp-cart-types { display: flex; flex-direction: column; gap: 8px; }
.s2 .chatp-cart-types > span { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.s2 .chatp-cart-images { display: flex; flex-direction: column; gap: 8px; }
.s2 .chatp-cart-go {
  width: 100%; height: 36px; border: 0; border-radius: 8px; background: var(--accent); color: #fff;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.s2 .chatp-cart-go:hover { background: var(--accent-2); }
.s2 .chatp-cart-mixed { display: flex; flex-wrap: wrap; gap: 6px; }
.s2 .chatp-cart-mixed button {
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--text-2); font: inherit; font-size: 11px; cursor: pointer;
}
.s2 .chatp-cart-mixed button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.s2 .chatp-action:disabled { opacity: .45; cursor: default; }
.s2 .sample-image-notice { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: 12px; }
.s2 .chatp-cart-list + .chatp-cart-images { margin-top: 8px; }
.s2 .chatp-cart-list + .chatp-cart-types,
.s2 .chatp-cart-images + .chatp-cart-types {
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border);
}
.s2 .chatp-type-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 0; }
.s2 .chatp-composer { flex: 0 0 auto; margin: 0 max(20px, calc(50% - 380px)) 20px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--sh-xs); }
.s2 .chatp-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .chatp-input { display: block; width: 100%; box-sizing: border-box; border: 0; outline: 0; resize: none; background: transparent; padding: 14px 14px 4px; font: inherit; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.s2 .chatp-composer-foot { display: flex; align-items: center; gap: 8px; padding: 6px 10px 10px 14px; }
.s2 .chatp-provider { font-size: 11px; color: var(--text-faint); }
.s2 .chatp-send { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; }
.s2 .chatp-send:hover:not(:disabled) { background: var(--accent-2); }
.s2 .chatp-send:disabled { background: var(--bg-panel); color: var(--text-faint); cursor: default; }
.s2 .folder-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 13px; color: var(--text-muted); }
.s2 .folder-crumb svg { color: var(--text-faint); }
.s2 .folder-crumb-link { border: 0; background: none; font: inherit; color: var(--text-muted); cursor: pointer; padding: 0; }
.s2 .folder-crumb-link:hover { color: var(--accent-text); }
.s2 .folder-crumb-cur { color: var(--text-2); font-weight: 600; }
.s2 .guide-editor {
  width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center;
  background: var(--bg-panel); color: var(--text-2);
  font-size: 12px; font-weight: 700; line-height: 1;
}
.s2 .guide-card-stats b { color: var(--text-2); font-weight: 700; }
.s2 .guide-card-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.s2 .guide-card-times { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 11.5px; color: var(--text-muted); }
.s2 .guide-card-times .gct-k { color: var(--text-subtle); font-weight: 600; margin-right: 2px; }
.s2 .guide-card-times .gct-sep { color: var(--text-faint); }
.s2 .size-chip {
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 7px; white-space: nowrap;
}
.s2 .dotsep { width: 3px; height: 3px; border-radius: 99px; background: var(--text-faint); }
.s2 .guide-card-foot {
  display: flex; gap: 6px; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.s2 .guide-cat-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 22px 0 18px;
}
.s2 .guide-cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.s2 .guide-cat-chip:hover { border-color: var(--border-strong); background: var(--bg-panel); }
.s2 .guide-cat-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.s2 .guide-cat-count {
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
  background: var(--bg-panel); border-radius: 99px; padding: 1px 7px; min-width: 18px; text-align: center;
}
.s2 .guide-cat-chip.on .guide-cat-count { background: rgba(255,255,255,.22); color: #fff; }
.s2 .guide-card-foot .btn { flex: 1; height: 32px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.s2 .guide-card-foot .btn.icon-only { flex: 0 0 auto; width: 32px; padding: 0; aspect-ratio: 1; }
.s2 .check-row {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 14px; border-radius: var(--r-md);
  transition: background 0.2s;
}
.s2 .check-row.active { background: var(--accent-soft); }
.s2 .check-row + .check-row { border-top: 1px solid var(--border); }
.s2 .check-row.active + .check-row, .s2 .check-row.active { border-top-color: transparent; }
.s2 .check-icon {
  width: 26px; height: 26px; border-radius: 99px; flex-shrink: 0;
  display: grid; place-items: center;
}
.s2 .check-row.done .check-icon { background: var(--green); color: #fff; }
.s2 .check-row.active .check-icon { background: transparent; }
.s2 .check-row.pending .check-icon { background: var(--bg-panel); }
.s2 .dot-pending { width: 7px; height: 7px; border-radius: 99px; background: var(--text-faint); }
.s2 .check-title { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.s2 .check-row.pending .check-title { color: var(--text-subtle); }
.s2 .check-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.s2 .check-row.pending .check-desc { color: var(--text-faint); }
.s2 .check-trail { color: var(--text-faint); flex-shrink: 0; }
.s2 .check-row.active .check-trail { color: var(--accent); }
.s2 .check-row.done .check-trail { color: var(--text-subtle); }
.s2 .collect-thumb {
  aspect-ratio: 16/7; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-panel);
}
.s2 .gd-grid { display: grid; grid-template-columns: 1fr 332px; gap: 24px; align-items: start; }
.s2 .spec-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-xs); }
.s2 .spec-card + .spec-card { margin-top: 18px; }
.s2 .spec-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.s2 .spec-head .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.s2 .spec-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.s2 .spec-head .sub { font-size: 12px; color: var(--text-subtle); margin-top: 1px; }
.s2 .size-row {
  display: grid; grid-template-columns: 1.4fr 1.1fr 0.9fr 1fr; align-items: center;
  padding: 11px 4px; font-size: 13px;
}
.s2 .size-row + .size-row { border-top: 1px solid var(--border); }
.s2 .size-row .nm { font-weight: 600; color: var(--text); }
.s2 .size-row .dim { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.s2 .size-row .rt, .s2 .size-row .us { color: var(--text-muted); }
.s2 .size-row.head { font-size: 11px; font-weight: 600; color: var(--text-subtle); padding-bottom: 8px; }
.s2 .size-row.head + .size-row { border-top: none; }
.s2 .pal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.s2 .swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.s2 .swatch .chip-color { height: 56px; }
.s2 .swatch .chip-meta { padding: 8px 10px; }
.s2 .swatch .role { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.s2 .swatch .hex { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; margin-top: 1px; }
.s2 .typo-row { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; }
.s2 .typo-row + .typo-row { border-top: 1px solid var(--border); }
.s2 .typo-meta { width: 120px; flex-shrink: 0; }
.s2 .typo-meta .r { font-size: 13px; font-weight: 600; }
.s2 .typo-meta .spec { font-size: 11.5px; color: var(--text-subtle); font-variant-numeric: tabular-nums; margin-top: 2px; }
.s2 .typo-sample { color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s2 .lo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s2 .lo-item { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); }
.s2 .lo-item .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-panel); color: var(--text-muted); display: grid; place-items: center; flex-shrink: 0; }
.s2 .lo-item .lab { font-size: 12px; color: var(--text-muted); }
.s2 .lo-item .val { font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.s2 .cpanel { position: sticky; top: 16px; }
.s2 .cpanel-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); overflow: hidden; }
.s2 .cpanel-head { padding: 15px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 9px; }
.s2 .cpanel-head .ic { color: var(--accent); }
.s2 .cpanel-head h3 { margin: 0; font-size: 14px; font-weight: 700; }
.s2 .cpanel-head .sub { font-size: 11.5px; color: var(--text-subtle); margin-top: 1px; }
.s2 .cpanel-body { padding: 16px; }
.s2 .ctrl + .ctrl { margin-top: 16px; }
.s2 .ctrl-label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.s2 .ctrl-label .v { font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.s2 .swatch-row { display: flex; gap: 8px; }
.s2 .sw-btn { width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform 0.1s; box-shadow: var(--sh-xs); }
.s2 .sw-btn:hover { transform: scale(1.08); }
.s2 .sw-btn.on { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset; }
.s2 .seg { display: flex; background: var(--bg-panel); border-radius: var(--r-md); padding: 3px; border: 1px solid var(--border); }
.s2 .seg button { flex: 1; height: 30px; border: none; background: transparent; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); transition: all 0.12s; }
.s2 .seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--sh-xs); }
.s2 .range { width: 100%; accent-color: var(--accent); height: 4px; cursor: pointer; }
.s2 .tpl-wrap { background: var(--bg-panel); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.s2 .tpl-frame { position: relative; border-radius: 10px; overflow: hidden; box-shadow: var(--sh-md); }
.s2 .slot {
  position: absolute; border: 1.5px dashed rgba(255,255,255,0.55);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.07); backdrop-filter: blur(1px);
  letter-spacing: -0.01em;
}
.s2 .slot.dark { border-color: rgba(0,0,0,0.3); color: rgba(0,0,0,0.6); background: rgba(0,0,0,0.04); }
.s2 .slot-tag { position: absolute; top: -9px; left: 8px; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--accent); color: #fff; }
.s2 .guide-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); margin-bottom: 22px;
}
.s2 .guide-bar .gb-mark { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.s2 .guide-bar .pal-dots { display: flex; gap: 4px; }
.s2 .guide-bar .pal-dots i { width: 13px; height: 13px; border-radius: 99px; border: 1px solid rgba(0,0,0,0.08); display: block; }
.s2 .create-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.s2 .preview-col { position: sticky; top: 16px; }
.s2 .dropzone {
  border: 1.5px dashed var(--border-input); border-radius: var(--r-lg);
  background: var(--bg-subtle); padding: 26px 20px; text-align: center;
  cursor: pointer; transition: border-color 0.14s, background 0.14s;
}
.s2 .dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.s2 .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.s2 .dropzone.has { padding: 0; border-style: solid; border-color: var(--border); overflow: hidden; background: var(--bg-panel); }
.s2 .dz-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); margin: 0 auto 12px; }
.s2 .dz-thumb { position: relative; }
.s2 .dz-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; }
.s2 .dz-remove { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 8px; background: rgba(0,0,0,0.6); color: #fff; border: none; display: grid; place-items: center; }
.s2 .upload-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.s2 .upload-head .section-title b { font-weight: 700; }
.s2 .img-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 4px; border-radius: var(--r-md); transition: background 0.14s, box-shadow 0.14s;
}
.s2 .img-grid.drag { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent) inset; }
.s2 .img-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-panel);
}
.s2 .img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2 .img-thumb .img-remove {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(0,0,0,0.6); color: #fff; border: none; padding: 0; line-height: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.12s;
}
.s2 .img-thumb .img-remove svg { display: block; }
.s2 .img-thumb:hover .img-remove { opacity: 1; }
.s2 .img-add {
  aspect-ratio: 16/9; border-radius: var(--r-md);
  border: 1.5px dashed var(--border-input); background: var(--bg-subtle);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--text-muted); font-size: 12px; font-weight: 600; transition: all 0.12s;
}
.s2 .img-add:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s2 .grp-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.s2 .grp-bar .seg button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.s2 .grp-bar .seg button svg { color: currentColor; }
.s2 .grp-summary {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted);
  padding: 7px 13px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 99px; box-shadow: var(--sh-xs);
}
.s2 .grp-summary svg { color: var(--accent); }
.s2 .grp-summary b { color: var(--text-2); font-weight: 700; }
.s2 .grp-note {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
  margin-bottom: 18px;
}
.s2 .grp-note-ic {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: var(--surface); color: var(--accent);
  display: grid; place-items: center; box-shadow: var(--sh-xs);
}
.s2 .grp-note-t { font-size: 13.5px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.s2 .grp-note-d { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.s2 .acc-meter { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.s2 .acc-track { width: 92px; height: 7px; border-radius: 99px; background: #fff; overflow: hidden; border: 1px solid var(--accent-soft-2); }
.s2 .acc-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #7c6df0); transition: width 0.4s cubic-bezier(0.22,1,0.36,1); }
.s2 .acc-val { font-size: 12.5px; font-weight: 700; color: var(--accent-text); font-variant-numeric: tabular-nums; min-width: 34px; }
.s2 .grp-list { display: flex; flex-direction: column; gap: 14px; }
.s2 .grp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs); padding: 16px;
}
.s2 .grp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.s2 .grp-badge {
  width: 22px; height: 22px; border-radius: 99px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-text);
  border: 1px solid var(--accent-soft-2);
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.s2 .grp-name {
  border: 1px solid transparent; background: transparent;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
  padding: 5px 9px; border-radius: var(--r-sm); min-width: 0; flex: 1; max-width: 220px;
  outline: none; transition: border-color 0.12s, background 0.12s;
}
.s2 .grp-name:hover { background: var(--bg-panel); }
.s2 .grp-name:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .grp-count { font-size: 12.5px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.s2 .grp-pal { display: flex; gap: 4px; margin-left: auto; flex-shrink: 0; }
.s2 .grp-pal i { width: 14px; height: 14px; border-radius: 99px; display: block; border: 1px solid rgba(0,0,0,0.08); }
.s2 .grp-imgs { display: flex; flex-wrap: wrap; gap: 8px; min-height: 76px; align-content: flex-start; }
.s2 .grp-thumb {
  position: relative; height: 76px; width: auto; flex: 0 0 auto;
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-panel);
  cursor: grab; transition: box-shadow 0.12s, opacity 0.12s, transform 0.12s;
}
.s2 .grp-thumb:hover { box-shadow: 0 0 0 2px var(--accent-soft-2); }
.s2 .grp-thumb:active { cursor: grabbing; }
.s2 .grp-thumb.dragging { opacity: 0.35; transform: scale(0.97); }
.s2 .grp-thumb img { display: block; height: 100%; width: auto; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.s2 .grp-thumb-x {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: #1e1e1e; color: #fff; border: none; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.12s;
}
.s2 .grp-thumb:hover .grp-thumb-x { opacity: 1; }
.s2 .grp-card.droppable { outline: 1.5px dashed var(--border-input); outline-offset: -4px; }
.s2 .grp-card.drop-on { border-color: var(--accent); outline-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft-2); background: var(--accent-soft); }
.s2 .grp-newzone {
  display: none; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px dashed var(--border-input); border-radius: var(--r-lg);
  padding: 18px; color: var(--text-subtle); font-size: 13px; font-weight: 600;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.s2 .grp-newzone.show { display: flex; }
.s2 .grp-newzone.drop-on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s2 .grp-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.s2 .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s2 .fbanner {
  container-type: size; position: relative; overflow: hidden;
  width: 100%; height: 100%; border-radius: 8px;
}
.s2 .fbanner .fb-pad { position: absolute; inset: 0; }
.s2 .variant-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--sh-xs); }
.s2 .variant-card.primary { border-color: var(--accent-soft-2); box-shadow: 0 0 0 1px var(--accent-soft-2), var(--sh-sm); }
.s2 .variant-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.s2 .variant-head .lab { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.s2 .variant-head .num { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.s2 .variant-head .num.alt { background: var(--text-2); }
.s2 .size-out { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; box-shadow: var(--sh-xs); transition: border-color 0.13s, box-shadow 0.13s; }
.s2 .size-out:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.s2 .size-out .so-frame { background: var(--bg-panel); border-radius: 6px; overflow: hidden; display: grid; place-items: center; padding: 8px; }
.s2 .size-out .so-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.s2 .size-out .so-nm { font-size: 12.5px; font-weight: 600; }
.s2 .size-out .so-dim { font-size: 11px; color: var(--text-subtle); font-variant-numeric: tabular-nums; margin-top: 1px; }
.s2 .export-bar {
  position: sticky; bottom: 0; margin: 24px -40px -80px; padding: 16px 40px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
}

.s2 { height: 100%; overflow: hidden; }
.s2 .app { height: 100%; width: 100%; grid-template-rows: none; }
/* undo 배너1 global bleed into shared class names */
.s2 .empty { color: var(--text); border: 0; background: transparent; padding: 0; border-radius: 0; font-size: inherit; }
.s2 .topbar { grid-template-columns: none; }
.s2 .input-prefix { position: static; left: auto; top: auto; transform: none; }
.s2 .content { background: #F3F3F3; }
/* rule 1 — apply 배너1 design tokens to 배너2 (colors · radii · shadows). Layout unchanged. */
.s2 {
  --accent: #4E4CDB;
  --accent-hover: #3831a6;
  --accent-press: #2c2688;
  --accent-soft: #edecfc;
  --accent-soft-2: #dcdaf6;
  --accent-text: #3831a6;

  --bg: #ffffff;
  --bg-subtle: #ffffff;
  --bg-panel: #f5f5f5;
  --surface: #ffffff;
  --border: #e6e6e6;
  --border-strong: #d4d4d4;
  --border-input: #d4d4d4;

  --text: #1e1e1e;
  --text-2: #333333;
  --text-muted: #686872;
  --text-subtle: #6b6b75;
  --text-faint: #6d6d77;

  --green: #14ae5c;
  --amber: #f5a623;
  --red: #f24822;

  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 13px;
  --r-xl: 13px;

  --sh-xs: 0 0 0 1px rgba(0,0,0,.05);
  --sh-sm: 0 2px 10px rgba(0,0,0,.08), 0 0 0 0.5px rgba(0,0,0,.06);
  --sh-md: 0 2px 10px rgba(0,0,0,.10), 0 0 0 0.5px rgba(0,0,0,.06);
  --sh-lg: 0 8px 30px rgba(0,0,0,.16), 0 0 0 0.5px rgba(0,0,0,.08);
  --sh-pop: 0 8px 30px rgba(0,0,0,.16), 0 0 0 0.5px rgba(0,0,0,.08);
}

/* ============ url-review (URL 분석 결과 / 선택) ============ */
.s2 .ur-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.s2 .ur-stat {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh-xs);
}
.s2 .ur-stat-action { cursor: pointer; transition: box-shadow .14s, transform .14s; padding-right: 40px; }
.s2 .ur-stat-action:hover { box-shadow: var(--sh-sm); }
.s2 .ur-stat-action:hover .ur-stat-go { color: var(--accent-text); background: var(--accent-soft); transform: translateY(-50%) translateX(2px); }
.s2 .ur-stat-go {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; color: var(--text-subtle);
  background: var(--bg-panel); transition: color .14s, background .14s, transform .14s;
}
.s2 .ur-stat-ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text);
  display: grid; place-items: center;
}
.s2 .ur-stat-v { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.s2 .ur-stat-u { font-size: 13px; font-weight: 600; color: var(--text-subtle); margin-left: 2px; }
.s2 .ur-stat-l { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.s2 .ur-collected {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 11px 14px; box-shadow: var(--sh-xs);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0;
}
.s2 .ur-collected-cap { font-size: 11.5px; font-weight: 600; color: var(--text-subtle); }
.s2 .ur-collected-row { display: flex; align-items: center; gap: 6px; }
.s2 .ur-collected-thumb {
  width: 46px; height: 26px; flex-shrink: 0; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--sh-xs);
}
.s2 .ur-collected-more {
  width: 30px; height: 26px; flex-shrink: 0; border-radius: 5px;
  background: var(--bg-panel); color: var(--text-muted);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

.s2 .ur-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.s2 .ur-card {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 0; overflow: hidden;
  font-family: inherit; box-shadow: var(--sh-xs);
  transition: border-color .14s, box-shadow .14s, transform .14s;
}
.s2 .ur-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.s2 .ur-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .ur-check {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  width: 24px; height: 24px; border-radius: 7px;
  background: rgba(255,255,255,.92); border: 1.5px solid var(--border-strong);
  color: #fff; display: grid; place-items: center;
  transition: background .14s, border-color .14s;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.s2 .ur-card.on .ur-check { background: var(--accent); border-color: var(--accent); }
.s2 .ur-preview { height: 132px; overflow: hidden; }
.s2 .ur-preview > div { width: 100%; height: 100%; }
.s2 .ur-body { padding: 14px 16px 16px; }
.s2 .ur-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.s2 .ur-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.s2 .ur-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); }
.s2 .ur-meta b { color: var(--text-2); font-weight: 700; }
.s2 .ur-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }
.s2 .ur-dot { width: 3px; height: 3px; border-radius: 99px; background: var(--text-faint); flex-shrink: 0; }
.s2 .ur-pal { display: flex; align-items: center; gap: 6px; margin-top: 13px; }
.s2 .ur-sw { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; border: 1px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.s2 .ur-pal-cap { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-subtle); font-variant-numeric: tabular-nums; }

/* spec-sheet sections inside candidate card */
.s2 .ur-secs { margin-top: 14px; }
.s2 .ur-sec {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--border);
}
.s2 .ur-sec-label {
  font-size: 11.5px; font-weight: 700; color: var(--text-subtle);
  display: flex; align-items: center; gap: 5px; padding-top: 3px;
}
.s2 .ur-sec-body { min-width: 0; }
.s2 .ur-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s2 .ur-chip {
  font-size: 12px; color: var(--text-2); line-height: 1.5;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 8px;
}
.s2 .ur-chip b { font-weight: 700; color: var(--text); margin-right: 3px; }
.s2 .ur-chip.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.s2 .ur-chip-accent { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent-text); font-weight: 600; }

/* ④ 후보 카드 — 가로형 + 점진적 공개 */
.s2 .ur-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.s2 .cand {
  position: relative; display: flex; gap: 18px; padding: 16px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-xs);
  cursor: pointer; text-align: left; transition: box-shadow .14s;
}
.s2 .cand:hover { box-shadow: var(--sh-sm); }
.s2 .cand.on { box-shadow: 0 0 0 2px var(--accent), var(--sh-sm); }
.s2 .cand-check {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  width: 24px; height: 24px; border-radius: 7px;
  background: rgba(255,255,255,.92); border: 1.5px solid var(--border-strong);
  color: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.12);
  transition: background .14s, border-color .14s;
}
.s2 .cand.on .cand-check { background: var(--accent); border-color: var(--accent); }
.s2 .cand-preview { width: 232px; height: 124px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-panel); }
.s2 .cand-preview > div { width: 100%; height: 100%; }
.s2 .cand-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.s2 .cand-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.s2 .cand-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.s2 .cand-type { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.s2 .cand-keys { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.s2 .cand-key { display: flex; flex-direction: column; gap: 4px; }
.s2 .cand-key-l { font-size: 11px; font-weight: 600; color: var(--text-subtle); }
.s2 .cand-key-v { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.s2 .cand-key-v.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.s2 .cand-sw-row { display: flex; gap: 4px; }
.s2 .cand-sw-row i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.s2 .cand-actions { display: flex; align-items: center; gap: 16px; }
.s2 .cand-more {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 2px 0;
}
.s2 .cand-more:hover { color: var(--accent-text); }
.s2 .cand-more b { color: var(--accent-text); }
.s2 .cand-detail { margin-top: 2px; padding-top: 4px; border-top: 1px solid var(--border); }
.s2 .cand-detail .ur-sec:first-child { border-top: 0; }

/* ============ create-flow (세로 누적형 스텝) ============ */
.s2 .flow { position: relative; display: flex; flex-direction: column; gap: 14px; }
.s2 .flow-step {
  position: relative; background: var(--surface); border: none;
  border-radius: var(--r-lg); box-shadow: var(--sh-xs); padding: 18px 20px;
  transition: box-shadow .14s, opacity .14s;
}
.s2 .flow-step.active { box-shadow: 0 0 0 2px var(--accent-soft-2), var(--sh-sm); }
.s2 .flow-step.locked { opacity: 0.55; }
.s2 .flow-step.locked .flow-step-num { background: var(--bg-panel); color: var(--text-faint); }
.s2 .flow-step-head { display: flex; align-items: center; gap: 12px; }
.s2 .flow-step-num {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}
.s2 .flow-step.done .flow-step-num { background: var(--green); }
.s2 .flow-step-titles { min-width: 0; flex: 1; }
.s2 .flow-step-title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.s2 .flow-step-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.s2 .flow-step-summary { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.s2 .flow-step-edit {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 6px; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.s2 .flow-step-edit:hover { background: #f3f3f3; color: var(--text); }
.s2 .flow-step-action { margin-left: auto; flex-shrink: 0; }
.s2 .flow-step-body { margin-top: 18px; }
.s2 .flow-tok-mini { display: inline-flex; align-items: center; gap: 4px; }
.s2 .flow-tok-mini i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,0.08); }
.s2 .flow-tok-mini b { font-size: 12px; font-weight: 600; color: var(--text-subtle); margin-left: 4px; }

.s2 .flow-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.s2 .flow-check {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 99px; padding: 6px 13px 6px 8px;
}
.s2 .flow-check.done { color: var(--text-2); }
.s2 .flow-check.active { color: var(--accent-text); background: var(--accent-soft); border-color: var(--accent-soft-2); }
.s2 .flow-check-ic {
  width: 18px; height: 18px; flex-shrink: 0; border-radius: 99px; display: grid; place-items: center;
  background: var(--border); color: #fff;
}
.s2 .flow-check.done .flow-check-ic { background: var(--green); }
.s2 .flow-check.active .flow-check-ic { background: transparent; }
.s2 .flow-check-dot { width: 6px; height: 6px; border-radius: 99px; background: var(--text-faint); }

/* ④ 재분석 로딩 */
.s2 .flow-reanalyze {
  display: flex; align-items: center; gap: 14px;
  padding: 28px 22px; border-radius: var(--r-lg);
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
}
.s2 .flow-reanalyze-t { font-size: 14px; font-weight: 700; color: var(--accent-text); letter-spacing: -0.01em; }
.s2 .flow-reanalyze-d { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* 업로드 영역 (이미지 플로우 ①) */
.s2 .upzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 9px; padding: 46px 24px; cursor: pointer;
  border: 1.5px dashed var(--border-input); border-radius: 14px;
  background: var(--bg-subtle); transition: border-color .14s, background .14s, box-shadow .14s;
}
.s2 .upzone:hover { border-color: var(--accent); background: var(--accent-soft); }
.s2 .upzone.drag { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .upzone-ic {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 4px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-sm);
  display: grid; place-items: center; color: var(--accent);
}
.s2 .upzone-t { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.s2 .upzone-d { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.s2 .upzone-meta { font-size: 12px; color: var(--text-subtle); margin-top: 2px; }

/* 근거 배너 strip (후보 카드 내) */
.s2 .ur-ev { border-top: 1px solid var(--border); margin: 14px -16px 0; padding: 12px 16px 2px; }
.s2 .ur-ev-toggle {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-muted); cursor: pointer; padding: 2px 0;
}
.s2 .ur-ev-toggle:hover { color: var(--accent-text); }
.s2 .ur-ev-toggle b { color: var(--accent-text); }
.s2 .ur-ev-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.s2 .ur-ev-thumb { height: 54px; flex-shrink: 0; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--sh-xs); }
.s2 .ur-ev-thumb > div { width: 100%; height: 100%; }

/* sticky generate bar — 브라우저 최하단 고정 · 최상위 레이어 */
.s2 .flow-genbar {
  position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; z-index: 9998;
  margin: 0; padding: 14px 24px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(24,24,27,0.06);
}
.s2 .ur-colors { display: flex; flex-wrap: wrap; gap: 7px; }
.s2 .ur-color {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 8px 3px 4px;
}
.s2 .ur-color-sw {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  border: 1px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.s2 .ur-color-hex {
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.s2 .ur-logo-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.s2 .ur-logo-badge.brand { background: var(--accent-soft); color: var(--accent-text); }
.s2 .ur-logo-badge.advertiser { background: var(--amber-soft); color: var(--amber); }
.s2 .ur-logo-meta { font-size: 12.5px; color: var(--text-2); }

/* collected-banners pattern group selection */
.s2 .grp-card.grp-sel { cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.s2 .grp-card.grp-sel:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.s2 .grp-card.grp-sel.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .grp-selbox {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px;
  border: 1.5px solid var(--border-strong); background: var(--surface);
  color: #fff; display: grid; place-items: center;
  transition: background .14s, border-color .14s;
}
.s2 .grp-card.grp-sel.sel .grp-selbox { background: var(--accent); border-color: var(--accent); }
.s2 .grp-name-static { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.s2 .grp-size { font-size: 11.5px; font-weight: 600; color: var(--text-subtle); font-variant-numeric: tabular-nums; margin-left: 2px; }
.s2 .grp-desc { font-size: 12.5px; color: var(--text-muted); margin: -6px 0 13px 32px; }
.s2 .cb-thumb { cursor: pointer; }
.s2 .cb-thumb:active { cursor: pointer; }
.s2 .cb-thumb > div { width: 100%; height: 100%; }

/* ============================================================
   A 누끼형 제작 플로우 (nukki.jsx)
   ============================================================ */
.s2 .nk-wrap { display: flex; flex-direction: column; }

/* 소재 업로드 — 항목별 분기 카드 */
.s2 .nk-sec-card { padding: 20px !important; border-style: none; margin-bottom: 16px; }
.s2 .nk-sec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.s2 .nk-sec-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .s2 .nk-sec-row, .s2 .nk-sec-row.three { grid-template-columns: 1fr; } }
/* 부가 텍스트 프리셋 칩 */
.s2 .nk-preset-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.s2 .nk-preset-chip { font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); padding: 5px 10px; border-radius: 99px; transition: all .12s; }
.s2 .nk-preset-chip:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s2 .nk-preset-chip.on { border-color: var(--accent); color: #fff; background: var(--accent); }
.s2 .nk-step { width: 20px; height: 20px; flex-shrink: 0; border-radius: 99px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; }
.s2 .nk-up-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.s2 .nk-up-head .section-title { margin: 0; }
.s2 .nk-up-count { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--text-subtle); font-variant-numeric: tabular-nums; }
.s2 .nk-badge-req { font-size: 10.5px; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-soft-2); padding: 2px 8px; border-radius: 99px; letter-spacing: 0.02em; }
.s2 .nk-badge-opt { font-size: 10.5px; font-weight: 700; color: var(--text-muted); background: var(--bg-panel); border: 1px solid var(--border); padding: 2px 8px; border-radius: 99px; }

/* 업로드 드롭존 (컴팩트) */
.s2 .nk-drop { border: 1.5px dashed var(--border-input); border-radius: var(--r-md); background: var(--bg-subtle); padding: 18px 14px; text-align: center; cursor: pointer; transition: border-color .12s, background .12s; }
.s2 .nk-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.s2 .nk-drop .dz-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); margin: 0 auto 8px; }
.s2 .nk-drop-t { font-size: 13px; font-weight: 600; color: var(--text); }
.s2 .nk-drop-h { font-size: 11.5px; color: var(--text-subtle); margin-top: 3px; }

/* 썸네일 그리드 */
.s2 .nk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.s2 .nk-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--bg-panel); }
.s2 .nk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.s2 .nk-thumb-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 6px; border: none; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.s2 .nk-thumb:hover .nk-thumb-x { opacity: 1; }
.s2 .nk-thumb-add { aspect-ratio: 1; border-radius: var(--r-md); border: 1.5px dashed var(--border-strong); background: var(--bg-subtle); color: var(--text-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; transition: all .12s; }
.s2 .nk-thumb-add:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

/* 로고 슬롯 (최대 2) */
.s2 .nk-logo-slots { display: flex; gap: 10px; }
.s2 .nk-logo-slot { position: relative; flex: 1; aspect-ratio: 1; max-width: 72px; border-radius: var(--r-md); border: 1.5px dashed var(--border-strong); background: var(--bg-subtle); color: var(--text-muted); display: grid; place-items: center; cursor: pointer; transition: all .12s; }
.s2 .nk-logo-slot:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s2 .nk-logo-slot.has { border-style: solid; border-color: var(--border); background: var(--surface); overflow: hidden; }
.s2 .nk-logo-slot img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.s2 .nk-logo-add { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; }
.s2 .nk-logo-note { font-size: 11.5px; color: var(--text-subtle); margin-top: 8px; line-height: 1.5; }

/* 배경 처리 옵션 (radio) */
.s2 .nk-bg-row { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.s2 .nk-bg-row .section-title { margin-bottom: 11px; }
.s2 .nk-radio-list { display: flex; flex-direction: column; gap: 8px; }
.s2 .nk-radio-list.horizontal { flex-direction: row; flex-wrap: wrap; }
.s2 .nk-radio-list.horizontal .nk-radio { width: auto; flex: 1; min-width: 180px; }
.s2 .nk-radio { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px 15px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all .12s; }
.s2 .nk-radio:hover { border-color: var(--border-strong); }
.s2 .nk-radio.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .nk-radio-dot { width: 16px; height: 16px; flex-shrink: 0; border-radius: 99px; border: 1.5px solid var(--border-strong); transition: all .12s; }
.s2 .nk-radio.on .nk-radio-dot { border-color: var(--accent); border-width: 5px; }

/* 시뮬레이션 헤더 */
.s2 .nk-sim-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.s2 .nk-canvas-pick { display: flex; align-items: center; gap: 10px; }
.s2 .nk-check { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text-2); transition: all .12s; }
.s2 .nk-check.on { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s2 .nk-check-box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--surface); color: #fff; display: grid; place-items: center; }
.s2 .nk-check.on .nk-check-box { background: var(--accent); border-color: var(--accent); }

/* 캔버스 블록 + 후보 */
.s2 .nk-canvas-block { margin-bottom: 26px; }
.s2 .nk-canvas-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.01em; }
.s2 .nk-cands { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 920px) { .s2 .nk-cands { grid-template-columns: 1fr; } }
.s2 .nk-cand { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-xs); cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.s2 .nk-cand:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.s2 .nk-cand.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.s2 .nk-cand-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.s2 .nk-engine-tag { color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 7px; letter-spacing: 0.01em; }
.s2 .nk-cand-pick { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.s2 .nk-cand-title { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.s2 .nk-cand-title b { color: var(--text); font-weight: 800; }

/* 캔버스 렌더 */
.s2 .nk-canvas { container-type: size; position: relative; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; padding: 7cqw; }
.s2 .nk-safe { position: absolute; inset: 6cqw; border: 1px dashed #cdd5e6; border-radius: 2cqw; pointer-events: none; }
.s2 .nk-logo { position: absolute; top: 5cqw; right: 5cqw; height: 9cqh; max-width: 30cqw; object-fit: contain; z-index: 4; }
.s2 .nk-logo-2 { right: auto; left: 5cqw; }
.s2 .nk-gift { position: absolute; bottom: 6cqw; left: 6cqw; width: 22cqw; height: 22cqw; object-fit: contain; z-index: 5; transform: rotate(-6deg); filter: drop-shadow(0 1cqw 2cqw rgba(0,0,0,0.18)); }
.s2 .nk-subtext-badge { position: absolute; right: 6cqw; width: 22cqw; height: 22cqw; border-radius: 99px; background: var(--accent); color: #fff; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 5cqw; line-height: 1.08; padding: 2cqw; z-index: 5; word-break: keep-all; }
.s2 .nk-model { flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: center; gap: 3cqw; margin-bottom: 2cqh; }
.s2 .nk-model-fig { width: 19cqw; height: 38cqh; border-radius: 9cqw 9cqw 3cqw 3cqw; background: linear-gradient(160deg, #2c3556, #1c2440); }
.s2 .nk-model-fig.sm { width: 17cqw; height: 33cqh; background: linear-gradient(160deg, #4a5578, #303a5e); }
.s2 .nk-products { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.6cqh; align-items: center; }
.s2 .nk-row { display: flex; gap: 1.8cqw; justify-content: center; align-items: flex-end; flex: 1; min-height: 0; width: 100%; }
.s2 .nk-tile { width: 15cqw; height: 100%; max-height: 22cqh; border-radius: 1.6cqw; overflow: hidden; background: #eef0f4; border: 1px solid #e2e5ec; flex-shrink: 0; }
.s2 .nk-tile img { width: 100%; height: 100%; object-fit: cover; }
.s2 .nk-tile-ph { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #eef0f4 0 6px, #e4e7ee 6px 12px); }

/* 메트릭 표 */
.s2 .nk-metrics { margin-top: 14px; border-top: 1px solid var(--border); }
.s2 .nk-metric { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 12.5px; }
.s2 .nk-metric-l { color: var(--text-muted); }
.s2 .nk-metric-v { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.s2 .nk-dot { width: 7px; height: 7px; border-radius: 99px; }

/* 저장 버튼 */
.s2 .nk-cand-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.s2 .nk-btn-save { background: var(--accent); color: #fff; font-weight: 700; height: 40px; border-radius: var(--r-md); }
.s2 .nk-btn-save:hover { background: var(--accent-hover); }
.s2 .nk-btn-adjust { background: #333333; color: #fff; font-weight: 700; height: 40px; border-radius: var(--r-md); }
.s2 .nk-btn-adjust:hover { background: #1f1f1f; }

.s2 .nk-empty { padding: 40px; text-align: center; color: var(--text-subtle); font-size: 13px; border: 1px dashed var(--border); border-radius: var(--r-lg); }
.s2 .nk-foot { font-size: 12px; color: var(--text-subtle); text-align: center; margin-top: 6px; }

/* 배너 유형 선택 (create.jsx) */
.s2 .type-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
@media (max-width: 720px) { .s2 .type-cats { grid-template-columns: repeat(2, 1fr); } }
.s2 .type-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 13px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); transition: all .12s; }
.s2 .type-cat:hover { border-color: var(--border-strong); }
.s2 .type-cat.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .tc-key { font-size: 11px; font-weight: 800; color: var(--text-subtle); letter-spacing: 0.04em; }
.s2 .type-cat.on .tc-key { color: var(--accent); }
.s2 .tc-name { font-size: 13.5px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.s2 .tc-note { font-size: 10.5px; font-weight: 600; color: var(--amber); }
.s2 .type-subs { display: flex; flex-wrap: wrap; gap: 8px; }
/* 세부 유형 — 예시 썸네일 선택 카드 */
.s2 .type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.s2 .type-card-v { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); text-align: left; transition: border-color .12s, box-shadow .12s; }
.s2 .type-card-v:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }
.s2 .type-card-v.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .tcv-thumb { position: relative; width: 100%; background: var(--bg-panel); overflow: hidden; }
.s2 .tcv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s2 .tcv-ph { width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #eef0f4 0 8px, #e4e7ee 8px 16px); }
.s2 .tcv-check { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-sm); }
.s2 .tcv-meta { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.s2 .tcv-id { font-size: 11px; font-weight: 800; color: var(--text-subtle); letter-spacing: 0.03em; }
.s2 .type-card-v.on .tcv-id { color: var(--accent); }
.s2 .tcv-label { font-size: 13px; font-weight: 700; color: var(--text); }
.s2 .type-sub { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .12s; }
.s2 .type-sub:hover { border-color: var(--border-strong); }
.s2 .type-sub.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.s2 .ts-id { font-size: 11px; font-weight: 800; color: var(--text-subtle); letter-spacing: 0.03em; }
.s2 .type-sub.on .ts-id { color: var(--accent); }
.s2 .ts-check { display: inline-flex; color: var(--accent); }

/* MID 검색 결과 헤더의 "전체 보기" */
.s2 .sample-mid-clear { margin-left: 8px; padding: 3px 9px; border: 1px solid var(--border); border-radius: 99px; background: #fff; color: var(--text-muted); font: inherit; font-size: 11px; cursor: pointer; }
.s2 .sample-mid-clear:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }

/* 담기(장바구니) — 상품 카드 담기 버튼 · 담은 목록 · 카테고리 배치 기준 질문 */
.s2 .sample-product { position: relative; }
.s2 .sample-product.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.s2 .sample-product-badge {
  position: absolute; top: 5px; left: 5px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; font-style: normal;
}
.s2 .sample-product-add {
  width: 100%; margin-top: 7px; padding: 5px 0; border: 1px solid var(--border); border-radius: 7px;
  background: #fff; color: var(--text-muted); font: inherit; font-size: 10.5px; font-weight: 700; cursor: pointer;
}
.s2 .sample-product-add:hover { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.s2 .sample-product-add.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.s2 .sample-mid-addall { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); font-weight: 700; }

@media (pointer: coarse) {
  .s2 button,
  .s2 [role="button"] { min-width: 44px; min-height: 44px; }
  .s2 input:not([type="checkbox"]):not([type="radio"]),
  .s2 select,
  .s2 textarea { min-height: 44px; }
  .s2 .dashboard-category-item,
  .s2 .dashboard-sub-item,
  .s2 .dashboard-category-tree-head button,
  .s2 .dashboard-category-trail button { height: auto; min-height: 44px; }
  .s2 .sample-db-search,
  .s2 .dashboard-category-filter { height: 44px; }
  .s2 .sample-pagination {
    max-width: 100%; justify-content: flex-start; overflow-x: auto; padding: 7px 0;
    overscroll-behavior-inline: contain;
  }
  .s2 .sample-page,
  .s2 .sample-page-nav,
  .s2 .sample-page-gap { min-width: 44px; height: 44px; }
}

/* 이미지 선택창 — 상품별 줄 */
.s2 .sample-image-row { padding: 10px 0; border-top: 1px dashed var(--border); }
.s2 .sample-image-row:first-of-type { border-top: 0; padding-top: 2px; }
.s2 .sample-image-row-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.s2 .sample-image-row-head b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text-2); }
.s2 .sample-image-row-head span { flex: 0 0 auto; color: var(--text-muted); font-size: 10.5px; }
.s2 .sample-image-row.on .sample-image-row-head span { color: var(--accent-text); font-weight: 700; }

/* 담은 목록 */
.s2 .sample-selection-bar { flex-direction: column; align-items: stretch; gap: 10px; }
.s2 .sample-cart { display: flex; flex-direction: column; gap: 7px; }
.s2 .sample-cart-head { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.s2 .sample-cart-head .sample-clear { margin-left: auto; }
.s2 .sample-cart-list { display: flex; flex-wrap: wrap; gap: 6px; }
.s2 .sample-cart-item {
  min-width: 0; max-width: 260px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 4px; border: 1px solid var(--border); border-radius: 99px; background: #fff; font-size: 11px;
}
.s2 .sample-cart-item i {
  flex: 0 0 auto; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 9.5px; font-style: normal; font-weight: 700;
}
.s2 .sample-cart-item b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-weight: 600; }
.s2 .sample-cart-item em { flex: 0 0 auto; color: var(--text-muted); font-size: 10px; font-style: normal; }
.s2 .sample-cart-item button {
  flex: 0 0 auto; display: grid; place-items: center; width: 16px; height: 16px; padding: 0;
  border: 0; border-radius: 99px; background: var(--bg-panel); color: var(--text-muted); cursor: pointer;
}
.s2 .sample-cart-item button:hover { background: #fee4e2; color: #b42318; }

/* 카테고리 배치 기준 질문 */
.s2 .sample-cat-ask {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 11px; border: 1px solid #fec84b; border-radius: 9px; background: #fffcf5;
}
.s2 .sample-cat-ask > span { color: #93370d; font-size: 12px; font-weight: 600; }
.s2 .sample-cat-ask > div { display: flex; gap: 6px; }
.s2 .sample-cat-ask button {
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 99px;
  background: #fff; color: var(--text-2); font: inherit; font-size: 11.5px; cursor: pointer;
}
.s2 .sample-cat-ask button.on { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 700; }

.s2 .sample-selection-foot { display: flex; align-items: center; gap: 10px; }
.s2 .sample-selection-foot > div:first-child { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }

/* 배경 제거 선택 — 본문 전체 전환 (큰 그리드 + 확대) */
.s2 .sample-db-nukki { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.s2 .sample-nukki-page-head { display: flex; align-items: center; gap: 6px; }
.s2 .sample-nukki-back {
  flex-shrink: 0; width: 32px; height: 32px; margin-left: -8px; padding: 0; border: 0;
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
}
.s2 .sample-nukki-back:hover { color: var(--text); background: rgba(22, 22, 28, .08); }
.s2 .sample-nukki-back:active { background: rgba(22, 22, 28, .12); }
.s2 .sample-nukki-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s2 .sample-nukki-page-titles { min-width: 0; flex: 1; }
.s2 .sample-nukki-page-titles h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.s2 .sample-nukki-page-titles p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted); }
.s2 .sample-nukki-page-count { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--accent-text); }
.s2 .sample-nukki-page-groups { display: flex; flex-direction: column; gap: 16px; }
.s2 .sample-nukki-group { display: flex; flex-direction: column; gap: 10px; }
.s2 .sample-nukki-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.s2 .sample-nukki-group-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s2 .sample-nukki-group-title b {
  min-width: 0; font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.s2 .sample-nukki-group-title span { color: var(--text-muted); font-size: 12px; }
.s2 .sample-nukki-group-all {
  flex-shrink: 0; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text-2); font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.s2 .sample-nukki-group-all:hover { border-color: var(--accent); color: var(--accent-text); }
.s2 .sample-nukki-group-all.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.s2 .sample-nukki-page-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.s2 .sample-nukki-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
}
.s2 .sample-nukki-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.s2 .sample-nukki-card-main {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden;
  border: 0; border-radius: 8px; background: #f7f7f9; cursor: pointer;
}
.s2 .sample-nukki-card-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.s2 .sample-nukki-card-main .sample-image-check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
}
.s2 .sample-nukki-zoom {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  width: 28px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255,255,255,.92); color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.s2 .sample-nukki-zoom:hover { background: #fff; color: var(--accent-text); }
.s2 .sample-nukki-card > small {
  display: block; padding: 0 2px; color: var(--text-muted); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s2 .sample-nukki-page-notice { color: #93370d; font-size: 12px; font-weight: 600; }
.s2 .sample-nukki-page-actions {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 4px -4px 0; padding: 12px 4px 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%);
}
.s2 .sample-nukki-page-actions button {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.s2 .sample-nukki-page-actions button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.s2 .sample-nukki-page-actions button.primary:disabled { border-color: var(--border); background: var(--bg-panel); color: var(--text-faint); cursor: default; }

.s2 .sample-nukki-lightbox {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.s2 .sample-nukki-lightbox-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 15, 20, .55); cursor: pointer; }
.s2 .sample-nukki-lightbox-body {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px;
  max-width: min(720px, 100%); max-height: 90vh; padding: 14px; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.s2 .sample-nukki-lightbox-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s2 .sample-nukki-lightbox-meta b {
  font-size: 14px; font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.s2 .sample-nukki-lightbox-meta span { color: var(--text-muted); font-size: 12px; }
.s2 .sample-nukki-lightbox-body img {
  display: block; max-width: 100%; max-height: calc(90vh - 88px); width: auto; height: auto;
  object-fit: contain; margin: 0 auto; background: #f7f7f9; border-radius: 8px;
}
.s2 .sample-nukki-lightbox-bar { display: flex; justify-content: flex-end; gap: 8px; }
.s2 .sample-nukki-lightbox-bar button {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text-2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.s2 .sample-nukki-lightbox-bar button.on { border-color: var(--accent); background: var(--accent); color: #fff; }

.s2 .chatp-picker-hint { margin: 0 0 8px; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
