/* 오리진실드 AI · 랜딩 리뉴얼 + 블록 관리자 시연 (blocks) */

/* ---------- 토큰 ---------- */
.bl {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --display: "Sora", "Pretendard Variable", Pretendard, sans-serif;
  --radius: 6px;
}
.bl--landing {
  --bg: #07090C;
  --surface: #10151B;
  --surface-2: #0C1116;
  --line: #1E2730;
  --text: #EAF0F4;
  --muted: #8B97A2;
  --primary: #00E0A4;
  --accent: #FF3D5A;
  --ok: #00E0A4;
  --warn: #FFB547;
  --danger: #FF3D5A;
  --on-primary: #03140E;
}
.bl--admin {
  --bg: #F3F5F7;
  --surface: #FFFFFF;
  --surface-2: #F8FAFB;
  --line: #DCE1E6;
  --text: #12171C;
  --muted: #5B6670;
  --primary: #0B8F6C;
  --primary-strong: #0A7A5C;
  --primary-soft: #E3F4EE;
  --accent: #FF3D5A;
  --ok: #0B8F6C;
  --warn: #B86E00;
  --danger: #C8283F;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.bl {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
:where(.bl) :where(button, input, textarea) { font: inherit; color: inherit; }
:where(.bl) button { cursor: pointer; }
:where(.bl) a { color: inherit; }
:where(.bl) svg { flex: none; }
.bl [hidden] { display: none !important; }
.bl :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- 공용: 안내 한 줄, 공고 대응표, 시연 안내 ---------- */
.demo-notice {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.is-embed .demo-notice { display: none; }
html:has(body.is-embed) { scrollbar-width: none; }
html:has(body.is-embed)::-webkit-scrollbar { display: none; }

.bl-mapbtn {
  position: fixed;
  right: 16px;
  bottom: 44px;
  z-index: 70;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.bl--landing .bl-mapbtn { border-color: rgba(0, 224, 164, .45); }
.bl--admin .bl-mapbtn { background: #12171C; color: #fff; border-color: #12171C; box-shadow: 0 8px 20px rgba(18, 23, 28, .22); }
.bl-mapbtn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }

.bl-sheet, .bl-modal {
  padding: 0;
  border: 0;
  background: transparent;
  color: #12171C;
  max-width: none;
  max-height: none;
}
.bl-sheet::backdrop, .bl-modal::backdrop, .ad-confirm::backdrop { background: rgba(4, 7, 10, .62); }
.bl-sheet[open] {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}
.bl-sheet__in {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px 14px 0 0;
  padding: 22px 20px 28px;
  font-family: var(--font);
}
@media (min-width: 768px) {
  .bl-sheet[open] { inset: 0; align-items: center; }
  .bl-sheet__in { border-radius: 10px; padding: 28px 30px 30px; }
}
.bl-sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.bl-sheet__eyebrow { margin: 0; font-size: 13px; color: #5B6670; }
.bl-sheet__head h2 { margin: 2px 0 0; font-size: 22px; letter-spacing: -0.01em; }
.bl-iconbtn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid #DCE1E6; border-radius: 8px; background: #fff;
}
.bl-iconbtn svg { width: 18px; height: 18px; stroke: #12171C; stroke-width: 1.8; fill: none; }
.bl-sheet__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #DCE1E6; }
.bl-sheet__list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #DCE1E6;
}
.bl-sheet__no { font-family: var(--display); font-weight: 700; font-size: 14px; color: #0A7A5C; padding-top: 1px; }
.bl-sheet__need { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.45; }
.bl-sheet__show { margin: 4px 0 0; font-size: 14px; color: #5B6670; line-height: 1.5; }
.bl-sheet__go {
  align-self: center;
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 12px;
  border: 1px solid #DCE1E6; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.bl-sheet__foot { margin: 14px 0 0; font-size: 13px; color: #5B6670; }
@media (max-width: 520px) {
  .bl-sheet__list li { grid-template-columns: 28px minmax(0, 1fr); }
  .bl-sheet__go { grid-column: 2; justify-self: start; }
}

.bl-modal[open] { position: fixed; inset: 0; margin: auto; display: grid; place-items: center; width: 100%; height: 100%; }
.bl-modal__in {
  width: min(360px, calc(100% - 32px));
  background: #fff; border-radius: 10px; padding: 24px;
  font-family: var(--font); text-align: center;
}
.bl-modal__title { margin: 0; font-size: 18px; font-weight: 700; }
.bl-modal__body { margin: 8px 0 18px; font-size: 14px; color: #5B6670; }
.bl-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 6px; border: 0;
  font-weight: 700;
}
.bl-btn--solid { background: #12171C; color: #fff; width: 100%; }

/* =========================================================
   랜딩
   ========================================================= */
.lp { position: relative; }
.lp-wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }

.lp-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 9, 12, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.lp-head__in { height: 68px; display: flex; align-items: center; gap: 28px; }
.lp-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.lp-mark { width: 26px; height: 26px; color: var(--primary); }
.lp-logo__word { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.lp-logo__ai {
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .06em;
  color: var(--on-primary); background: var(--primary); border-radius: 4px; padding: 2px 5px 1px;
}
.lp-nav { display: flex; gap: 24px; margin-left: 12px; }
.lp-nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.lp-nav a:hover { color: var(--text); }
.lp-head__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lp-tool {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 10px;
  border: 1px solid transparent; border-radius: var(--radius); background: none;
  color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none;
}
.lp-tool:hover { color: var(--text); border-color: var(--line); }
.lp-tool svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.is-embed .lp-tool { display: none; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn--mint { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 1px rgba(0, 224, 164, .4), 0 10px 30px -10px rgba(0, 224, 164, .55); }
.lp-btn--mint:hover { transform: translateY(-1px); }
.lp-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; margin-left: 6px; }

.lp-eyebrow {
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--primary); letter-spacing: .01em;
}
.lp-eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.lp-h2 { margin: 0; font-family: var(--display); font-size: 40px; line-height: 1.25; letter-spacing: -0.025em; font-weight: 700; }
.lp-h3 { margin: 0; font-size: 22px; line-height: 1.4; letter-spacing: -0.015em; }
.lp-p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.lp-note {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 9px; border-radius: 12px;
  border: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 500;
}
.lp-sechead { max-width: 720px; margin-bottom: 56px; }
.lp-sechead--tight { margin-bottom: 0; }

.lp-block { padding: 120px 0; border-top: 1px solid transparent; position: relative; }
.lp-main > .lp-block:first-child { padding-top: 88px; }
.lp-block.is-selected { outline: 2px solid var(--primary); outline-offset: -2px; }
.lp-block.is-selected::after {
  content: "편집 중";
  position: absolute; top: 0; left: 0;
  background: var(--primary); color: var(--on-primary);
  font-size: 12px; font-weight: 700; padding: 3px 8px;
}
.is-embed .lp-block { cursor: pointer; }

/* ----- 배너형 ----- */
.lp-banner { overflow: hidden; }
.lp-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 360px at 78% 30%, rgba(0, 224, 164, .14), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.lp-banner__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}
.lp-banner__title { margin: 0; font-family: var(--display); font-size: 56px; line-height: 1.16; letter-spacing: -0.035em; font-weight: 700; }
.lp-banner__body { margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 520px; }
.lp-banner__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.lp-banner__in[data-media-state="none"] {
  grid-template-columns: 1fr;
  text-align: center;
  padding: 72px 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(0, 224, 164, .16), transparent 70%),
    var(--surface-2);
  width: calc(100% - 48px);
  max-width: 1200px;
}
.lp-banner__in[data-media-state="none"] .lp-banner__copy { max-width: 720px; margin: 0 auto; }
.lp-banner__in[data-media-state="none"] .lp-banner__title { font-size: 40px; line-height: 1.3; }
.lp-banner__in[data-media-state="none"] .lp-banner__body { margin-left: auto; margin-right: auto; }
.lp-banner__in[data-media-state="none"] .lp-banner__actions { justify-content: center; }
.lp-banner__in[data-media-state="none"] .lp-banner__media { display: none; }
.lp-banner:has([data-media-state="none"])::before { display: none; }

/* 리스팅 스캔 키비주얼 (시그니처) */
.lp-scan {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #0D1217, #0A0E12);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}
.lp-scan__bar, .lp-scan__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; font-size: 13px; color: var(--muted);
}
.lp-scan__bar { border-bottom: 1px solid var(--line); }
.lp-scan__foot { border-top: 1px solid var(--line); justify-content: flex-start; }
.lp-live { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(0, 224, 164, .16); }
.lp-scan__count { font-family: var(--display); font-size: 12px; }
.lp-pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px;
  font-size: 12px; font-weight: 700;
}
.lp-pill--danger { background: rgba(255, 61, 90, .14); color: #FF6B80; border: 1px solid rgba(255, 61, 90, .4); }

.lp-scan__grid {
  --row: 0.96s;
  --start: 0.7s;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}
.lp-tile {
  --img: 84px;
  --d: calc(var(--start) + var(--row) * (var(--rd) + 0.5));
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}
.lp-tile__img {
  height: var(--img);
  display: grid; place-items: center;
  background: linear-gradient(160deg, #18202A, #121820);
  color: #A9B6C2;
}
.lp-glyph { width: 46px; height: 46px; }
.lp-tile__meta { display: grid; gap: 1px; padding: 8px 9px 9px; font-size: 11px; line-height: 1.35; }
.lp-tile__mk { color: var(--muted); font-size: 10px; }
.lp-tile__name { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-tile__price { font-family: var(--display); font-weight: 600; font-size: 11px; color: #C9D3DC; }
.lp-tile__ok {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); opacity: 0;
  animation: lp-dot .4s ease-out both; animation-delay: var(--d);
}
.lp-tile.is-flag { animation: lp-flag .45s ease-out both; animation-delay: var(--d); }
.lp-tile__flag {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 9px;
  background: linear-gradient(180deg, rgba(255, 61, 90, .12) 0, rgba(255, 61, 90, .12) var(--img), #2A0A11 var(--img));
  font-size: 11px; line-height: 1.3;
  opacity: 0;
  animation: lp-label .45s ease-out both; animation-delay: var(--d);
}
.lp-tile__flag b { color: #fff; font-size: 12px; font-weight: 800; }
.lp-tile__flag b::before {
  content: "";
  display: inline-block; width: 7px; height: 7px; margin-right: 5px; vertical-align: 1px;
  background: var(--accent); border-radius: 1px;
}
.lp-tile__flag span { color: #FFB3BE; }
.lp-scan__line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--primary);
  box-shadow: 0 0 14px 2px rgba(0, 224, 164, .7);
  opacity: 0;
  pointer-events: none;
  animation: lp-scan calc(var(--row) * 3 / .62) linear infinite;
  animation-delay: var(--start);
}
.lp-scan__line::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 70px;
  background: linear-gradient(to top, rgba(0, 224, 164, .16), transparent);
}
@keyframes lp-scan {
  0% { top: 0; opacity: 0; }
  3% { opacity: 1; }
  62% { top: 100%; opacity: 1; }
  68% { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}
@keyframes lp-flag {
  from { border-color: var(--line); box-shadow: none; }
  to { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 28px -4px rgba(255, 61, 90, .55); }
}
@keyframes lp-label { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lp-dot { from { opacity: 0; transform: scale(.4); } to { opacity: .9; transform: none; } }

/* 대시보드 이미지 */
.lp-dash {
  display: grid; grid-template-columns: 52px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #0C1116; min-height: 340px;
}
.lp-dash__side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: #0A0E12; border-right: 1px solid var(--line); }
.lp-dash__logo { width: 22px; height: 22px; border-radius: 6px; background: var(--primary); margin-bottom: 10px; }
.lp-dash__side i { width: 20px; height: 4px; border-radius: 2px; background: #26303A; }
.lp-dash__side i.is-on { background: var(--primary); }
.lp-dash__main { padding: 18px; display: grid; gap: 16px; align-content: start; }
.lp-dash__top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lp-dash__top div { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--surface); }
.lp-dash__top small { display: block; font-size: 11px; color: var(--muted); }
.lp-dash__top b { font-family: var(--display); font-size: 20px; }
.lp-dash__chart { width: 100%; height: 110px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.lp-dash__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lp-dash__rows li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: var(--surface); }
.lp-dash__rows span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-dash__rows em { font-style: normal; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lp-dash__rows em.is-danger { color: #FF6B80; }

/* 영상 썸네일 */
.lp-video {
  position: relative; aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 50% 40%, #17222B, #080B0E 75%);
  color: #fff;
}
.lp-video__bg { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; }
.lp-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 0 0 10px rgba(0, 224, 164, .16);
}
.lp-video__play svg { width: 30px; height: 30px; margin-left: 4px; }
.lp-video__cap { position: absolute; left: 18px; bottom: 16px; font-weight: 700; font-size: 15px; }
.lp-video__time { position: absolute; right: 16px; bottom: 16px; font-family: var(--display); font-size: 13px; background: rgba(0, 0, 0, .55); padding: 2px 8px; border-radius: 4px; }
.lp-upload { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.lp-upload img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }

/* ----- 숫자 띠 ----- */
.lp-stats { padding: 64px 0; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-stats__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.lp-stats__title { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); }
.lp-stats__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-stat { display: grid; gap: 4px; padding: 4px 28px; border-left: 1px solid var(--line); }
.lp-stat:first-child { padding-left: 0; border-left: 0; }
.lp-stat__value { font-family: var(--display); font-size: 52px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.lp-stat::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--primary); margin-bottom: 12px; }
.lp-stat__label { color: var(--muted); font-size: 15px; }

/* ----- 좌우 교차형 ----- */
.lp-split__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 72px; }
.lp-split__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.lp-split__row:nth-child(even) .lp-split__copy { order: 2; }
.lp-split__tag {
  display: inline-block; margin-bottom: 14px;
  font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--primary);
  border: 1px solid rgba(0, 224, 164, .35); border-radius: 4px; padding: 3px 8px;
}
.lp-split__copy .lp-p { max-width: 460px; }

.lp-ui {
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 18px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
}
.lp-ui__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lp-ui__head b { color: var(--text); font-size: 13px; }
.lp-ui__head b.is-ok { color: var(--primary); }
.lp-ui__scores { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-ui__scores li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; gap: 12px; align-items: center; font-size: 14px; }
.lp-ui__scores span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-ui__scores i { height: 8px; border-radius: 4px; background: #1A232C; position: relative; overflow: hidden; }
.lp-ui__scores i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: #3A4652; border-radius: 4px; }
.lp-ui__scores i.is-danger::after { background: var(--accent); }
.lp-ui__scores b { font-family: var(--display); text-align: right; font-size: 14px; }
.lp-ui__scores b.is-danger { color: #FF6B80; }
.lp-ui__checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.lp-ui__checks li { display: flex; gap: 10px; align-items: center; }
.lp-ui__checks li::before { content: ""; width: 18px; height: 18px; border-radius: 4px; flex: none; }
.lp-ui__checks li.is-ok::before { background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='%2303140E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lp-ui__checks li.is-skip { color: var(--muted); }
.lp-ui__checks li.is-skip::before { border: 1.5px solid #3A4652; }
.lp-ui__sign { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
.lp-ui__doc { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.lp-ui__shot { aspect-ratio: 3 / 4; border: 1px dashed #3A4652; border-radius: 6px; display: grid; place-items: center; align-content: center; gap: 6px; color: #A9B6C2; background: #0E1419; }
.lp-ui__shot em { font-style: normal; font-size: 11px; color: var(--muted); }
.lp-ui__doc dl { margin: 0; display: grid; gap: 10px; }
.lp-ui__doc dl div { display: grid; gap: 1px; }
.lp-ui__doc dt { font-size: 12px; color: var(--muted); }
.lp-ui__doc dd { margin: 0; font-size: 14px; font-weight: 600; font-family: var(--display), var(--font); }
.lp-ui__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lp-ui__steps li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 0 0 18px 28px; font-size: 14px; }
.lp-ui__steps li:last-child { padding-bottom: 0; }
.lp-ui__steps li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #3A4652; background: var(--bg); }
.lp-ui__steps li::after { content: ""; position: absolute; left: 6px; top: 20px; bottom: 2px; width: 2px; background: #26303A; }
.lp-ui__steps li:last-child::after { display: none; }
.lp-ui__steps li.is-done::before { border-color: var(--primary); background: var(--primary); }
.lp-ui__steps li.is-done::after { background: rgba(0, 224, 164, .5); }
.lp-ui__steps span { color: var(--muted); font-family: var(--display); font-size: 13px; }

/* ----- 탭 전환형 ----- */
.lp-tabs__bar { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); margin-bottom: 36px; max-width: 100%; overflow-x: auto; }
.lp-tabs__tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 7px; background: none;
  color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.lp-tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.lp-tabs__tab[aria-selected="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 8px; vertical-align: 2px; }
.lp-tabs__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.lp-tabs__copy .lp-p { max-width: 440px; }

.lp-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-cmp__frame { margin: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px; }
.lp-cmp__frame figcaption { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.lp-cmp__frame.is-suspect { border-color: rgba(255, 61, 90, .5); }
.lp-cmp__frame.is-suspect figcaption { color: #FF8C9C; }
.lp-cmp__img { position: relative; aspect-ratio: 1; border-radius: 6px; background: linear-gradient(160deg, #18202A, #10161D); display: grid; place-items: center; color: #C9D3DC; }
.lp-cmp__img .lp-glyph { width: 62%; height: 62%; }
.lp-cmp__img.is-flip .lp-glyph { transform: scaleX(-1); }
.lp-box { position: absolute; border: 1.5px solid var(--accent); border-radius: 3px; background: rgba(255, 61, 90, .08); }
.lp-box em { position: absolute; left: -1.5px; bottom: 100%; font-style: normal; white-space: nowrap; font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); padding: 1px 5px; border-radius: 2px 2px 0 0; }
.lp-box--below em { bottom: auto; top: 100%; border-radius: 0 0 2px 2px; }
.lp-txt { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 20px; }
.lp-txt__meta { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.lp-txt__body { margin: 0; font-size: 17px; line-height: 1.9; }
.lp-txt mark { background: rgba(255, 61, 90, .16); color: #FF9AA8; border-bottom: 2px solid var(--accent); padding: 0 2px; }
.lp-txt mark.is-price { background: rgba(255, 181, 71, .14); color: #FFCF85; border-color: var(--warn); }
.lp-txt__tags { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.lp-txt__tags li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.lp-txt__tags b { font-size: 12px; color: var(--muted); font-weight: 600; }
.lp-txt__tags em { font-style: normal; font-family: var(--display); font-weight: 700; color: #FF8C9C; }
.lp-net { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 14px; }
.lp-net svg { width: 100%; height: auto; display: block; }
.lp-net__links path { stroke: #33414E; stroke-width: 1.5; fill: none; }
.lp-net__attr rect { fill: #0E1419; stroke: rgba(255, 181, 71, .6); }
.lp-net__attr text { fill: #FFCF85; font-size: 11px; text-anchor: middle; font-family: var(--font); font-weight: 600; }
.lp-net__node circle { fill: #1A232C; stroke: #8B97A2; stroke-width: 1.5; }
.lp-net__core circle { fill: rgba(255, 61, 90, .14); stroke: var(--accent); stroke-width: 2; }
.lp-net__core text { fill: #fff; font-size: 11px; text-anchor: middle; font-weight: 700; font-family: var(--font); }
.lp-net__cap { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.lp-net__cap b { color: var(--text); }

/* ----- 카드 그리드형 ----- */
.lp-cards__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-card {
  position: relative;
  border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 26px 22px 28px;
  min-height: 250px;
}
.lp-card__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 224, 164, .1); color: var(--primary); margin-bottom: 30px; }
.lp-card__icon svg { width: 22px; height: 22px; }
.lp-card__no { position: absolute; top: 26px; right: 22px; font-family: var(--display); font-size: 13px; color: #3A4652; font-weight: 700; }
.lp-card__title { margin: 0; font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; }

/* ----- 로고 슬라이더 ----- */
.lp-logos { padding: 96px 0; }
.lp-logos__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.lp-logos__head .lp-h2 { font-size: 32px; }
.lp-logos__nav { display: flex; align-items: center; gap: 8px; }
.lp-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.lp-round svg { width: 18px; height: 18px; stroke: var(--text); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-logos__track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.lp-logos__track::-webkit-scrollbar { display: none; }
.lp-wm {
  scroll-snap-align: start;
  height: 96px; border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; padding: 0 12px;
  color: #B8C3CD; background: var(--surface-2);
  white-space: nowrap; overflow: hidden;
}
.lp-wm span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lp-wm--0 { font-family: Georgia, "Times New Roman", serif; letter-spacing: .18em; font-size: 15px; }
.lp-wm--1 { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.lp-wm--2 { font-family: Georgia, serif; font-style: italic; font-size: 21px; }
.lp-wm--3 { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .4em; }
.lp-wm--4 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .12em; border-style: solid; }
.lp-wm--4 span { border: 2px solid currentColor; padding: 2px 8px; }
.lp-wm--5 { font-family: Georgia, serif; font-size: 24px; letter-spacing: -0.02em; }
.lp-wm--6 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .3em; }
.lp-wm--7 { font-family: ui-monospace, Menlo, monospace; font-size: 18px; }

/* ----- 푸터·알림 ----- */
.lp-foot { border-top: 1px solid var(--line); padding: 44px 0 64px; }
.lp-foot__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-foot__brand p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.lp-foot__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.lp-foot__links a { color: var(--muted); text-decoration: none; }

.lp-toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 80;
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 16px; border-radius: 10px;
  background: #F3F5F7; color: #12171C; box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  font-size: 14px;
}
.lp-toast p { margin: 0; font-weight: 600; }
.lp-toast__dot { width: 10px; height: 10px; border-radius: 50%; background: #0B8F6C; }
.lp-toast__btn { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 6px; border: 1px solid #DCE1E6; background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; color: #12171C; }

/* ----- 미리보기 띠 ----- */
.pv-band {
  position: sticky; top: 0; z-index: 60;
  background: #F3F5F7; color: #12171C;
  border-bottom: 1px solid #DCE1E6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.pv-band ~ .lp .lp-head { position: relative; }
.pv-band__in { max-width: 1248px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pv-band__msg { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 380px; }
.pv-band__msg p { margin: 0; font-size: 14px; line-height: 1.45; }
.pv-band__msg p span { color: #5B6670; display: block; font-size: 13px; }
.pv-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: #FFE3A3; color: #5A3B00; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pv-badge i { width: 7px; height: 7px; border-radius: 50%; background: #B86E00; }
.pv-band__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none; border: 1px solid #DCE1E6; background: #fff; color: #12171C; }
.pv-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.pv-btn--ghost { border-color: transparent; background: none; }
.pv-btn--mint { background: #0A7A5C; border-color: #0A7A5C; color: #fff; min-width: 88px; justify-content: center; }
.pv-btn:disabled { opacity: .45; cursor: not-allowed; }
.pv-changes { max-width: 1248px; margin: 0 auto; padding: 0 24px 12px; display: flex; align-items: center; gap: 10px; }
.pv-changes__label { font-size: 13px; color: #5B6670; white-space: nowrap; }
.pv-changes__label b { color: #12171C; }
.pv-changes__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pv-changes__list::-webkit-scrollbar { display: none; }
.pv-changes__list li { white-space: nowrap; font-size: 13px; padding: 4px 10px; border-radius: 13px; background: #fff; border: 1px solid #DCE1E6; }
.pv-changes__list li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 2px; background: #5B6670; }
.pv-changes__list li.is-add::before { background: #0B8F6C; }
.pv-changes__list li.is-hide::before, .pv-changes__list li.is-remove::before { background: #C8283F; }
.pv-changes__list li.is-move::before { background: #2B6CB0; }
.pv-changes__list li.is-edit::before { background: #B86E00; }
.pv-changes__list li.is-empty { background: none; border: 0; padding-left: 0; color: #5B6670; }
.pv-changes__list li.is-empty::before { display: none; }

/* ----- 랜딩 반응형 ----- */
@media (max-width: 1100px) {
  .lp-nav { display: none; }
  .lp-banner__title { font-size: 46px; }
  .lp-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-logos__track { grid-auto-columns: calc((100% - 3 * 12px) / 4); }
}
@media (max-width: 900px) {
  .lp-block { padding: 88px 0; }
  .lp-banner__in, .lp-tabs__panel, .lp-split__row { grid-template-columns: 1fr; gap: 36px; }
  .lp-split__row:nth-child(even) .lp-split__copy { order: 0; }
  .lp-split__list { gap: 64px; }
  .lp-h2 { font-size: 32px; }
  .lp-sechead { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 20px; }
  .lp-head__in { height: 60px; gap: 10px; }
  .lp-logo__word { font-size: 16px; }
  .lp-tool { width: 38px; padding: 0; justify-content: center; border-color: var(--line); }
  .lp-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lp-btn--sm { margin-left: 2px; padding: 0 12px; min-height: 38px; font-size: 13px; }
  .lp-block { padding: 72px 0; }
  .lp-main > .lp-block:first-child { padding-top: 40px; }
  .lp-banner__title { font-size: 34px; line-height: 1.22; }
  .lp-banner__body { font-size: 16px; margin-top: 16px; }
  .lp-banner__actions { margin-top: 26px; }
  .lp-banner__actions .lp-btn { width: 100%; }
  .lp-banner__in[data-media-state="none"] { padding: 44px 20px; width: calc(100% - 40px); }
  .lp-banner__in[data-media-state="none"] .lp-banner__title { font-size: 28px; }
  .lp-scan__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .lp-tile { --d: calc(var(--start) + var(--row) * (var(--rm) + 0.5)); }
  .lp-tile:nth-child(n + 10):not(.lp-scan__line) { display: none; }
  .lp-tile { --img: 72px; }
  .lp-glyph { width: 38px; height: 38px; }
  .lp-tile__flag { padding: 7px; }
  .lp-tile__flag b { font-size: 11px; }
  .lp-tile__flag span { display: none; }
  .lp-stats { padding: 48px 0; }
  .lp-stats__row { grid-template-columns: 1fr; gap: 18px; }
  .lp-stat { padding: 0 0 18px; border-left: 0; border-bottom: 1px solid var(--line); grid-template-columns: auto 1fr; align-items: baseline; gap: 14px; }
  .lp-stat::before { display: none; }
  .lp-stat:last-child { border-bottom: 0; padding-bottom: 0; }
  .lp-stat__value { font-size: 38px; }
  .lp-h2 { font-size: 28px; line-height: 1.3; }
  .lp-h3 { font-size: 20px; }
  .lp-tabs__bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin-bottom: 28px; }
  .lp-tabs__tab { white-space: normal; line-height: 1.3; padding: 6px 8px; font-size: 14px; }
  .lp-tabs__tab[aria-selected="true"]::before { display: none; }
  .lp-cards__grid { grid-template-columns: 1fr; gap: 12px; }
  .lp-card { min-height: 0; padding: 22px 20px; }
  .lp-card__icon { margin-bottom: 18px; }
  .lp-logos { padding: 72px 0; }
  .lp-logos__head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .lp-logos__head .lp-h2 { font-size: 26px; }
  .lp-logos__track { grid-auto-columns: calc((100% - 12px) / 2); }
  .lp-wm { height: 84px; }
  .lp-ui__doc { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .lp-ui__scores li { grid-template-columns: 84px minmax(0, 1fr) 26px; }
  .lp-cmp { gap: 10px; }
  .lp-cmp__frame { padding: 8px; }
  .lp-dash { grid-template-columns: 40px minmax(0, 1fr); min-height: 0; }
  .lp-dash__main { padding: 12px; gap: 10px; }
  .lp-dash__top b { font-size: 15px; }
  .lp-dash__chart { height: 80px; }
  .pv-band__in { padding: 10px 16px; gap: 10px; }
  .pv-band__msg { flex-basis: 100%; }
  .pv-band { position: relative; }
  .pv-band__actions { width: 100%; display: grid; grid-template-columns: auto 1.6fr 1fr; gap: 6px; }
  .pv-btn { padding: 0 8px; justify-content: center; font-size: 13px; white-space: nowrap; }
  .pv-btn--ghost { padding: 0 6px 0 0; }
  .pv-changes { padding: 0 16px 10px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .pv-changes__list { width: 100%; }
  .lp-toast { bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-scan__line { display: none; }
  .lp-tile.is-flag, .lp-tile__flag, .lp-tile__ok { animation: none; }
  .lp-tile.is-flag { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 28px -4px rgba(255, 61, 90, .55); }
  .lp-tile__flag { opacity: 1; }
  .lp-tile__ok { opacity: .9; }
  .lp-btn--mint:hover { transform: none; }
}

/* =========================================================
   블록 관리자
   ========================================================= */
.ad { height: calc(100vh - 32px); height: calc(100dvh - 32px); display: flex; flex-direction: column; min-height: 600px; }
.ad-head { background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.ad-head__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; min-height: 52px; }
.ad-head__row--bar { border-top: 1px solid var(--line); min-height: 60px; background: var(--surface-2); }
.ad-head__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ad-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 15px; white-space: nowrap; }
.ad-logo .lp-mark { width: 22px; height: 22px; color: var(--primary); }
.ad-head__page { font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.ad-head__tools { display: flex; gap: 4px; }
.ad-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: none; font-size: 14px; color: var(--muted); text-decoration: none; }
.ad-link:hover { background: var(--bg); color: var(--text); }
.ad-link svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ad-status { display: flex; align-items: center; gap: 18px; min-width: 0; flex-wrap: wrap; row-gap: 2px; }
.ad-state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ad-state b { color: var(--text); }
.ad-state i { width: 8px; height: 8px; border-radius: 50%; background: #9AA5AF; }
.ad-state i.is-ok { background: var(--ok); }
.ad-state i.is-warn { background: #E59A1A; }
.ad-live { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-live b { color: var(--text); font-weight: 600; }
.ad-actions { display: flex; gap: 8px; flex: none; }
.ad-btn {
  min-height: 40px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.ad-btn:hover { border-color: #B9C2CA; }
.ad-btn--primary { background: var(--primary-strong); border-color: var(--primary-strong); color: #fff; }
.ad-btn--primary:hover { background: #086A50; border-color: #086A50; }

.ad-panes { display: none; }

.ad-body {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 420px;
}
.ad-col { min-height: 0; overflow: auto; border-right: 1px solid var(--line); }
.ad-col:last-child { border-right: 0; }
.ad-col--list { background: var(--surface-2); padding: 18px 16px 90px; }
.ad-col--edit { background: var(--surface); padding: 22px 28px 90px; }
.ad-col--preview { background: #E9EDF0; display: flex; flex-direction: column; overflow: hidden; }
.ad-col__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ad-col__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.ad-count { font-size: 13px; color: var(--muted); }
.ad-hint { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.5; }

.ad-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ad-item {
  position: relative;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  transition: box-shadow .12s ease;
}
.ad-item.is-selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 6px 18px -8px rgba(11, 143, 108, .45); }
.ad-item.is-off .ad-item__thumb, .ad-item.is-off .ad-item__text { opacity: .5; }
.ad-item.is-dragging { opacity: .4; }
.ad-item.drop-before::before, .ad-item.drop-after::after {
  content: ""; position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: var(--primary);
}
.ad-item.drop-before::before { top: -6px; }
.ad-item.drop-after::after { bottom: -6px; }
.ad-item__row { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 4px; }
.ad-grip { width: 20px; height: 40px; display: grid; place-items: center; cursor: grab; color: #9AA5AF; }
.ad-grip svg { width: 16px; height: 16px; fill: currentColor; }
.ad-item__main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; text-align: left; }
.ad-item__thumb, .ad-form__thumb { width: 44px; height: 30px; flex: none; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.ad-item__thumb svg, .ad-form__thumb svg, .ad-thumb svg { width: 100%; height: 100%; }
.ad-item__text { display: grid; min-width: 0; line-height: 1.3; }
.ad-item__text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-item__text small { font-size: 12px; color: var(--muted); }
.t-ink { fill: #4A5560; }
.t-soft { fill: #B7C0C8; }
.t-pri { fill: var(--primary); }
.t-box { fill: #fff; stroke: #B7C0C8; stroke-width: 1; }

.ad-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; flex: none; }
.ad-switch__track { width: 34px; height: 20px; border-radius: 10px; background: #C5CDD4; position: relative; transition: background .15s ease; }
.ad-switch__dot { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.ad-switch[aria-checked="true"] .ad-switch__track { background: var(--primary); }
.ad-switch[aria-checked="true"] .ad-switch__dot { transform: translateX(14px); }
.ad-switch__label { width: 26px; font-size: 11px; font-weight: 700; color: var(--muted); text-align: left; }
.ad-switch[aria-checked="true"] .ad-switch__label { color: var(--primary-strong); }
.ad-item__ctrl { display: flex; gap: 6px; padding: 0 8px 8px 28px; }
.ad-mini { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; font-weight: 600; }
.ad-mini svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ad-mini:disabled { opacity: .4; cursor: default; }
.ad-mini--danger { margin-left: auto; color: var(--danger); }

.ad-add { margin-top: 12px; width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed #AEB8C1; border-radius: 8px; background: none; font-weight: 700; color: var(--primary-strong); }
.ad-add svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.ad-add[aria-expanded="true"] { border-style: solid; border-color: var(--primary); background: var(--primary-soft); }
.ad-palette { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ad-palette__title { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.ad-palette__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-tpl { width: 100%; height: 100%; display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-align: left; }
.ad-tpl:hover { border-color: var(--primary); background: var(--primary-soft); }
.ad-thumb { display: block; aspect-ratio: 64 / 40; border-radius: 4px; background: var(--bg); }
.ad-tpl b { font-size: 13px; }
.ad-tpl small { font-size: 11px; color: var(--muted); line-height: 1.35; }

.ad-form { max-width: 640px; }
.ad-form__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ad-form__thumb { width: 56px; height: 38px; }
.ad-form__type { margin: 0; font-size: 12px; color: var(--muted); }
.ad-form__name { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.ad-pill { margin-left: auto; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ad-pill.is-on { background: var(--primary-soft); color: var(--primary-strong); }
.ad-pill.is-off { background: #ECEFF2; color: var(--muted); }
.ad-form__sep { height: 1px; background: var(--line); margin: 6px 0 18px; }
.ad-field { margin-bottom: 16px; }
.ad-field > label:not(.ad-upload), .ad-field__label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.ad-field input[type="text"], .ad-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-size: 15px; line-height: 1.5;
}
.ad-field textarea { resize: vertical; min-height: 84px; }
.ad-field input:focus, .ad-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 143, 108, .16); }
.ad-help { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ad-help.is-warn, .ad-field.is-warn .ad-help { color: var(--warn); }
.ad-field.is-warn input { border-color: #E59A1A; }

.ad-media { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ad-media__opt { position: relative; display: grid; gap: 2px; padding: 6px 6px 8px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; background: var(--surface); }
.ad-media__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ad-media__opt:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); background: var(--primary-soft); }
.ad-media__opt:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.ad-media__opt.is-disabled { cursor: default; opacity: .55; }
.ad-media__opt b { font-size: 12px; margin-top: 4px; line-height: 1.3; }
.ad-media__opt small { font-size: 11px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-media__pic { display: block; aspect-ratio: 16 / 10; border-radius: 4px; background: #E9EDF0 center / cover no-repeat; }
.ad-media__pic--scan {
  background:
    linear-gradient(transparent 48%, #00E0A4 48%, #00E0A4 54%, transparent 54%),
    linear-gradient(90deg, transparent 52%, rgba(255, 61, 90, .9) 52%, rgba(255, 61, 90, .9) 74%, transparent 74%) 0 18% / 100% 30% no-repeat,
    repeating-linear-gradient(90deg, #1C252E 0 22%, #0B0F13 22% 26%),
    #0B0F13;
}
.ad-media__pic--dashboard { background: linear-gradient(90deg, #0A0E12 18%, transparent 18%), linear-gradient(#26303A 0 0) 26% 22% / 60% 10% no-repeat, linear-gradient(#00E0A4 0 0) 26% 60% / 64% 6% no-repeat, linear-gradient(#26303A 0 0) 26% 80% / 50% 6% no-repeat, #121820; }
.ad-media__pic--video { background: radial-gradient(circle at 50% 50%, #00E0A4 0 16%, transparent 17%), radial-gradient(circle at 50% 40%, #1D2933, #080B0E 80%); }
.ad-media__pic--none { background: repeating-linear-gradient(45deg, #fff 0 6px, #EEF1F4 6px 12px); border: 1px dashed #C5CDD4; }
.ad-media__pic--upload { background-color: #EEF1F4; background-image: linear-gradient(#9AA5AF 0 0), linear-gradient(#9AA5AF 0 0); background-size: 2px 34%, 34% 2px; background-position: center; background-repeat: no-repeat; }
.ad-media__pic--upload[style] { background-size: cover; }
.ad-upload { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 700; cursor: pointer; background: var(--surface); position: relative; }
.ad-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ad-upload:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.ad-upload svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.ad-items { margin-top: 8px; }
.ad-items__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.ad-itembox { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--surface); }
.ad-itembox summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; cursor: pointer; }
.ad-itembox summary::-webkit-details-marker { display: none; }
.ad-itembox summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); flex: none; }
.ad-itembox[open] summary::after { transform: rotate(-135deg); }
.ad-itembox__no { font-size: 12px; font-weight: 700; color: var(--primary-strong); white-space: nowrap; }
.ad-itembox__sum { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ad-itembox__body { padding: 4px 14px 2px; border-top: 1px solid var(--line); }
.ad-itembox__body .ad-field { margin: 12px 0; }
.ad-empty { padding: 48px 0; text-align: center; color: var(--muted); }

.ad-col--preview .ad-col__head { padding: 14px 16px 10px; margin: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ad-seg { display: inline-flex; padding: 3px; border-radius: 8px; background: #E3E8EC; }
.ad-seg__btn { min-height: 34px; padding: 0 9px; border: 0; border-radius: 6px; background: none; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ad-seg__btn span { font-weight: 500; }
.ad-seg__btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(18, 23, 28, .15); }
.ad-stage {
  flex: 1 1 auto; min-height: 0; padding: 12px; overflow: hidden;
  background: radial-gradient(#CBD3DA 1px, transparent 1px) 0 0 / 14px 14px, #E9EDF0;
}
.ad-stage__device { position: relative; margin: 0 auto; overflow: hidden; border-radius: 6px; background: #07090C; box-shadow: 0 10px 30px -8px rgba(18, 23, 28, .45), 0 0 0 1px rgba(18, 23, 28, .12); }
.ad-stage__frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: #07090C; }
.ad-stage__cap { margin: 0; padding: 10px 16px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-2); }
.ad-stage__cap span { font-weight: 700; color: var(--text); margin-right: 6px; }

.ad-foot { flex: none; padding: 9px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.ad-foot p { margin: 0; font-size: 12px; color: var(--muted); padding-right: 150px; }
.ad-foot b { color: var(--text); }

.ad-toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 80;
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 10px 10px 16px; border-radius: 10px;
  background: #12171C; color: #fff; box-shadow: 0 16px 36px rgba(18, 23, 28, .3);
}
.ad-toast p { margin: 0; font-size: 14px; font-weight: 600; }
.ad-toast__btn { min-height: 36px; padding: 0 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #7CF1CF; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }

.ad-confirm { padding: 0; border: 0; border-radius: 12px; width: min(460px, calc(100% - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.ad-confirm__in { padding: 24px; }
.ad-confirm h2 { margin: 0; font-size: 19px; }
.ad-confirm__sub { margin: 6px 0 12px; font-size: 14px; color: var(--muted); }
.ad-confirm__sub b { color: var(--text); }
.ad-confirm__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; max-height: 240px; overflow: auto; }
.ad-confirm__list li { padding: 10px 12px; font-size: 14px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.ad-confirm__list li:last-child { border-bottom: 0; }
.ad-confirm__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; transform: translateY(-1px); }
.ad-confirm__list li.is-add::before { background: var(--ok); }
.ad-confirm__list li.is-hide::before, .ad-confirm__list li.is-remove::before { background: var(--danger); }
.ad-confirm__list li.is-move::before { background: #2B6CB0; }
.ad-confirm__list li.is-edit::before { background: #E59A1A; }
.ad-confirm__note { margin: 12px 0 18px; font-size: 13px; color: var(--muted); }
.ad-confirm__actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ----- 관리자 반응형 ----- */
@media (max-width: 1279px) {
  .ad-body { grid-template-columns: 280px minmax(0, 1fr) 380px; }
  .ad-media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .ad { height: auto; min-height: 0; }
  .ad-head__row { padding: 0 16px; }
  .ad-head__row--bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 16px 12px; }
  .ad-head__page { display: none; }
  .ad-link span { display: none; }
  .ad-link { width: 44px; justify-content: center; padding: 0; border: 1px solid var(--line); min-height: 40px; }
  .ad-status { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ad-actions { display: grid; grid-template-columns: 1fr 1fr 1.3fr; }
  .ad-btn { min-height: 44px; padding: 0 8px; }
  .ad-panes {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: sticky; top: 0; z-index: 30;
    background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .ad-panes__tab { min-height: 48px; border: 0; background: none; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
  .ad-panes__tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
  .ad-body { display: block; }
  .ad-col { display: none; overflow: visible; border-right: 0; }
  .ad-body[data-pane="list"] .ad-col--list,
  .ad-body[data-pane="edit"] .ad-col--edit,
  .ad-body[data-pane="preview"] .ad-col--preview { display: block; }
  .ad-col--list, .ad-col--edit { padding: 16px 16px 40px; }
  .ad-col--preview { display: none; }
  .ad-body[data-pane="preview"] .ad-col--preview { display: flex; }
  .ad-col--preview .ad-col__head { flex-wrap: wrap; }
  .ad-stage { height: 620px; flex: none; }
  .ad-foot { padding: 12px 16px 16px; }
  .ad-foot p { padding-right: 0; }
  .ad-palette__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .ad-palette__grid { grid-template-columns: 1fr 1fr; }
  .ad-media { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ad-seg__btn { padding: 0 7px; }
  .ad-col--preview .ad-col__head h2 { width: 100%; }
}
