:root {
  --bg: #F7F3EE; --card: #FFFFFF; --ink: #1D1B19; --muted: #6B645C; --line: #EADFD2;
  --accent: #E23B2E; --badge: #FFD84D; --ok: #1F8A4C; --soft: #F4ECE2;
  --radius: 16px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 18px; line-height: 1.5; word-break: keep-all; }
a { color: inherit; }
.wrap { max-width: 480px; margin: 0 auto; padding: 28px 16px calc(40px + env(safe-area-inset-bottom)); }
.skel { text-align: center; color: var(--muted); padding: 80px 0; }

/* ── 공개 페이지 공통 ── */
:root { --brand: #5E2A26; --cream: #FFF8F1; }
body.pub { background: #EFE9E1; }
.pub .wrap { background: var(--bg); min-height: 100vh; padding: 0 0 calc(110px + env(safe-area-inset-bottom)); }
.rv { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
.rv.in { opacity: 1; transform: none; }
@keyframes blink { 50% { opacity: .25; } }
.foot { text-align: center; font-size: 13px; margin: 36px 16px 0; line-height: 1.8; font-weight: 600; }
.foot a { color: var(--muted); }
.nf { text-align: center; padding: 80px 16px; }
.arr { font-size: 24px; line-height: 1; opacity: .6; }

/* ── 홈: 리틀리식 브랜드 색 페이지 ── */
body.home { background: #2b1614; }
body.home .wrap { background: var(--brand); color: var(--cream); }
.prof { text-align: center; padding: 40px 20px 8px; }
.prof .avatar { width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 14px; overflow: hidden; border: 3px solid rgba(255,248,241,.9);
  display: grid; place-items: center; background: #fff; color: var(--brand); font-size: 42px; font-weight: 900; }
.prof .avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof h1 { font-size: 26px; font-weight: 900; margin: 0; letter-spacing: -0.03em; }
.slogan { margin: 6px 0 0; font-size: 17px; font-weight: 700; color: #FAD9B8; }
.prof .bio { margin: 10px 0 0; white-space: pre-line; font-size: 15px; line-height: 1.6; color: rgba(255,248,241,.82); }
.sns { display: flex; justify-content: center; gap: 12px; margin: 18px 0 4px; }
.sns-i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); border: 1.5px solid rgba(255,248,241,.45); }
.sns-i svg { width: 24px; height: 24px; }
.blk { padding: 0 16px; margin-top: 26px; }
.sh { text-align: center; margin: 0 0 12px; }
.sh h2 { font-size: 20px; font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.sh p { margin: 4px 0 0; font-size: 15px; color: rgba(255,248,241,.78); }
.benefit { display: flex; align-items: center; gap: 12px; background: #FFD84D; color: #3a2400; border-radius: 18px; padding: 16px 18px; text-decoration: none; }
.benefit b { display: block; font-size: 18px; font-weight: 900; }
.benefit small { display: block; font-size: 14px; font-weight: 700; opacity: .8; }
.benefit > span:nth-child(2) { flex: 1; }
.benefit .bf-q { display: inline-block; margin-top: 6px; font-style: normal; font-size: 13px; font-weight: 800; background: #3a2400; color: #FFD84D; padding: 3px 9px; border-radius: 99px; }
.benefit.off { background: #E7E9F2; color: #2b2f3a; }
.bf-e { font-size: 28px; }
.banner { display: block; background: var(--cream); color: var(--ink); border-radius: 20px; overflow: hidden; text-decoration: none; }
.bn-img { display: grid; gap: 2px; aspect-ratio: 4 / 3; background: #eadfd2; }
.bn-img.n3 { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; }
.bn-img.n3 img:first-child { grid-row: span 2; }
.bn-img.n2 { grid-template-columns: 1fr 1fr; }
.bn-img img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.bn-cap { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; font-size: 18px; }
.bn-cap b { font-weight: 900; }
.livebox { display: block; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 16px; text-decoration: none; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.wd { border-radius: 12px; padding: 8px 0; background: #F2E8DD; }
.wd i { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.wd em { display: block; font-style: normal; font-size: 14px; font-weight: 900; color: #c9bcae; }
.wd.on { background: var(--brand); } .wd.on i { color: #FAD9B8; } .wd.on em { color: #fff; }
.wd.today { outline: 2px solid #FFD84D; outline-offset: -2px; }
.lv-next { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.lv-next b { font-size: 21px; font-weight: 900; }
.onair { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--accent); }
.onair i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.livebox.on .onair i, .livecard.on .onair i { animation: blink 1.2s infinite; }
.lc-badge { font-size: 13px; font-weight: 800; background: var(--ink); color: #FFD84D; padding: 4px 10px; border-radius: 99px; margin-left: auto; }
.lv-go { margin-top: 10px; font-size: 15px; font-weight: 800; color: var(--brand); }
.thumb { display: flex; align-items: center; gap: 14px; background: var(--cream); color: var(--ink); border-radius: 18px; padding: 10px 14px 10px 10px; margin-bottom: 10px; text-decoration: none; }
.th-img { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; background: #F2E8DD; display: grid; place-items: center; font-size: 28px; }
.th-img img { width: 100%; height: 100%; object-fit: cover; }
.th-txt { flex: 1; min-width: 0; }
.th-txt b { display: block; font-size: 18px; font-weight: 800; }
.th-txt small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-wrap { position: relative; }
.slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 62%; scroll-snap-align: start; background: var(--cream); color: var(--ink); border-radius: 18px; overflow: hidden; text-decoration: none; padding-bottom: 12px; }
.sl-img { display: block; aspect-ratio: 3 / 4; background: #F2E8DD; }
.sl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide b { display: block; font-size: 16px; font-weight: 800; margin: 10px 12px 0; line-height: 1.35; }
.slide small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 2px 12px 0; }
.cnt { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.grid3 .slide { padding: 0; border-radius: 12px; }
.guide { display: flex; background: var(--cream); color: var(--ink); border-radius: 20px; overflow: hidden; text-decoration: none; margin-bottom: 10px; min-height: 150px; }
.gd-img { flex: 0 0 38%; background: #F2E8DD; }
.gd-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.gd-txt { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.gd-txt em { font-style: normal; font-size: 12px; font-weight: 800; background: #FFD84D; color: #3a2400; padding: 3px 9px; border-radius: 99px; align-self: flex-start; }
.gd-txt b { font-size: 19px; font-weight: 900; line-height: 1.3; letter-spacing: -0.02em; }
.gd-txt small { font-size: 14px; color: var(--muted); font-weight: 600; }
.gd-go { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--brand); }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check { border: 0; padding: 0 0 10px; background: var(--cream); color: var(--ink); border-radius: 16px; overflow: hidden; text-align: center; cursor: pointer; font: inherit; }
.ck-img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #F2E8DD; }
.ck-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.check b { display: block; font-size: 13px; font-weight: 800; margin: 8px 6px 0; line-height: 1.35; }
.wbtn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; background: var(--cream); color: var(--ink); border-radius: 16px; margin-bottom: 10px; text-decoration: none; font-size: 18px; }
.wbtn b { font-weight: 800; }
.wbtn.hl { background: #FFD84D; }
.home .foot { color: rgba(255,248,241,.7); }
.home .foot .muted { color: rgba(255,248,241,.5); }
.viewer { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.85); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 50px 12px 20px; }
.viewer img { width: 100%; max-width: 480px; height: auto; border-radius: 12px; }
.vx { position: fixed; top: 12px; right: 16px; color: #fff; font-weight: 800; font-size: 16px; background: rgba(0,0,0,.5); padding: 6px 12px; border-radius: 99px; }

/* 하단 고정 버튼 */
.sticky { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 5;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.lp .sticky { background: linear-gradient(180deg, rgba(247,243,238,0), var(--bg) 35%); }
.home .sticky { background: linear-gradient(180deg, rgba(0,0,0,0), rgba(40,18,16,.55) 40%); }
.cta { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; border-radius: 16px; text-decoration: none;
  background: var(--accent); color: #fff; font-size: 19px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.home .cta { background: #FFD84D; color: #3a2400; }
.cta.off, .home .cta.off { background: #E7E9F2; color: #2b2f3a; font-size: 17px; cursor: default; }
.cta b { font-weight: 800; }
.cta-arr { font-size: 24px; line-height: 1; }
.cta2 { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 18px; border-radius: 16px; text-decoration: none;
  background: #fff; color: var(--ink); border: 1.5px solid var(--ink); font-size: 17px; }
.btn:active, .cta:active, .thumb:active, .banner:active, .wbtn:active, .benefit:active { transform: scale(.98); }

/* 광고 랜딩 안의 라이브 카드 */
.livecard { display: block; margin: 18px 0 0; padding: 18px 20px; border-radius: 20px; text-decoration: none; color: #fff; background: var(--ink); text-align: left; }
.lc-top { display: flex; align-items: center; justify-content: space-between; }
.livecard .onair { color: #FFD84D; } .livecard .onair i { background: #FFD84D; }
.livecard .lc-badge { background: rgba(255,255,255,.14); color: #fff; }
.lc-when { font-size: 26px; font-weight: 900; margin: 8px 0 2px; }
.lc-desc { font-size: 15px; color: #E8DFD6; }
.lc-go { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 800; color: #FFD84D; }

/* ── 광고 랜딩 ── */
.lp-top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px;
  background: rgba(247,243,238,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; }
.lp-brand img, .lp-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; }
.lp-home { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lp-hero { padding: 28px 20px 8px; text-align: center; }
.eb { display: inline-block; font-size: 14px; font-weight: 800; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--badge); }
.eb.dark { background: var(--ink); }
.lp-hero h1 { font-size: 31px; line-height: 1.28; font-weight: 900; letter-spacing: -0.035em; margin: 14px 0 10px; white-space: pre-line; }
.lp-sub { font-size: 18px; color: var(--muted); font-weight: 600; margin: 0 0 20px; }
.lp-media { position: relative; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 14px 34px rgba(29,27,25,.25); aspect-ratio: 9 / 16; max-height: 72vh; margin: 0 auto; }
.lp-media.pic { aspect-ratio: auto; max-height: none; background: #F2E8DD; }
.lp-media video, .lp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.snd { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; padding: 8px 12px; border-radius: 99px; border: 0; }
.lp-ctas { display: flex; gap: 8px; margin-top: 18px; }
.lp-pain { background: var(--ink); color: #fff; margin: 36px 0 0; padding: 36px 20px; }
.lp-pain h2 { font-size: 24px; font-weight: 900; margin: 0 0 18px; text-align: center; }
.lp-pain ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-pain li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255,255,255,.07); border-radius: 16px; padding: 16px; font-size: 17px; font-weight: 600; line-height: 1.45; }
.lp-pain .x { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.lp-sec { padding: 8px 16px 0; }
.lp-sec h2, .lp-offer h2, .lp-final h2 { font-size: 25px; font-weight: 900; letter-spacing: -0.03em; text-align: center; margin: 40px 0 18px; white-space: pre-line; line-height: 1.3; }
.pt { background: var(--card); border-radius: 22px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(29,27,25,.08); }
.pt-img { position: relative; aspect-ratio: 4 / 5; background: var(--soft); }
.pt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-no { position: absolute; left: 14px; top: 14px; font-size: 22px; font-weight: 900; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 12px; }
.pt-no.inline { position: static; display: inline-block; margin-bottom: 8px; font-size: 16px; }
.pt-txt { padding: 18px 20px 22px; }
.pt h3 { font-size: 22px; font-weight: 900; margin: 0 0 6px; letter-spacing: -0.02em; }
.pt p { margin: 0; font-size: 17px; color: #4a443e; font-weight: 500; }
blockquote { margin: 0 0 12px; background: var(--card); border-radius: 18px; padding: 18px 20px; border: 1px solid var(--line); }
blockquote p { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
blockquote cite { font-style: normal; color: var(--muted); font-size: 14px; }
.lp-offer { margin: 36px 16px 0; background: var(--badge); border-radius: 24px; padding: 28px 20px 20px; text-align: center; }
.lp-offer h2 { margin: 12px 0 8px; }
.lp-offer > p { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.lp-offer .livecard { margin: 18px 0 0; text-align: left; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; padding: 0 18px; }
summary { font-size: 17px; font-weight: 800; padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; font-size: 16px; color: #4a443e; }
.lp-desc { text-align: center; color: var(--muted); font-size: 16px; margin: -8px 0 16px; font-weight: 600; }
.lp-prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-prod { background: var(--card); border-radius: 16px; overflow: hidden; text-decoration: none; padding-bottom: 12px; box-shadow: 0 4px 14px rgba(29,27,25,.08); }
.lp-prod b { display: block; font-size: 15px; font-weight: 800; margin: 8px 10px 0; line-height: 1.35; }
.lp-prod small { display: block; font-size: 12px; color: var(--muted); margin: 2px 10px 0; font-weight: 600; }
.lp-final { margin: 40px 0 0; padding: 8px 20px 12px; text-align: center; }
.lp-final p { color: var(--muted); font-size: 17px; font-weight: 600; margin: 0; }
@media (min-width: 481px) { .pub .wrap { margin-top: 0; } }

/* ── 관리 화면 ── */
body.adm { font-size: 16px; }
.adm .wrap { max-width: 760px; padding-top: 16px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.bar h1 { font-size: 20px; font-weight: 900; margin: 0 auto 0 0; }
h1.brand { display: flex; align-items: center; gap: 10px; }
h1.brand img { width: 36px; height: 36px; border-radius: 9px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: #6C4BD8; color: #fff; }
select, input, textarea, button { font: inherit; }
select, input[type=text], input[type=url], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 72px; resize: vertical; }
button, .b { border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.ghost, .b.ghost { background: var(--soft); color: var(--ink); }
button.warn { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
button:disabled { opacity: .5; cursor: default; }
.tabs { display: flex; gap: 6px; margin: 8px 0 16px; border-bottom: 2px solid var(--line); overflow-x: auto; }
.tabs button { background: none; color: var(--muted); border-radius: 0; padding: 10px 12px; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; }
.kpi span { display: block; color: var(--muted); font-size: 14px; font-weight: 600; }
.kpi b { font-size: 28px; font-weight: 900; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.row > button, .row > .b { flex: 0 0 auto; }
label.f { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin: 10px 0 4px; }
label.ck { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; margin-right: 12px; }
.lb { display: grid; grid-template-columns: minmax(0, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--soft); }
.lb .track { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.lb .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.lb .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lk { border-left: 5px solid var(--line); }
.lk.hl { border-left-color: var(--accent); }
.lk.inactive { opacity: .6; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.msg { padding: 10px 14px; border-radius: 10px; background: var(--soft); margin: 8px 0; }
.msg.err { background: #FDECEA; color: #9B1C12; }
.chart svg { width: 100%; height: auto; display: block; }
dialog { border: 0; border-radius: var(--radius); padding: 20px; width: min(92vw, 420px); }
dialog::backdrop { background: rgba(0,0,0,.4); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; font-weight: 700; z-index: 9; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 700; padding: 6px 4px; border-bottom: 1.5px solid var(--line); }
.tbl td { padding: 8px 4px; border-bottom: 1px solid var(--soft); }
.tbl td:not(:first-child), .tbl th:not(:first-child) { text-align: right; white-space: nowrap; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; min-height: 320px; }
h4 { margin: 18px 0 2px; }
.blk-card { border-left: 0; }
.items { margin-top: 10px; display: grid; gap: 8px; }
.item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.item.inactive, .card.inactive { opacity: .6; }
.item.bad { border-color: var(--accent); }
.bad-t { color: var(--accent); font-weight: 700; }

/* ── 자동 DM ── */
.dm { font-size: 17px; }
.dm h3 { font-size: 19px; }
.dm h4 { font-size: 17px; margin: 0 0 8px; }
.dm h5 { font-size: 15px; margin: 16px 0 6px; color: var(--muted); }
.dm button.big, .dm .b.big { min-height: 52px; padding: 12px 18px; font-size: 17px; }
.dm .kpi small { display: block; font-size: 13px; }
.dm-chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--ink); margin: 2px 4px 2px 0; }
.dm-chip.ok { background: #E3F4EA; color: var(--ok); }
.dm-chip.warn { background: #FDECEA; color: #9B1C12; }
.dm-chip.kw { background: #FFF4C2; }
.dm-chip.gate { background: #EFE9FF; color: #5B3CC4; }
.dm-chips { margin-top: 6px; }
.dm-nums { margin-top: 6px; color: var(--muted); font-weight: 600; }
.dm-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--soft); flex: 0 0 52px !important; display: inline-block; }
.dm-thumb { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; flex: 0 0 64px !important; background: var(--soft); display: grid; place-items: center; font-size: 26px; }
.dm-rule.inactive { opacity: .75; }
.dm-kv { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--soft); }
.dm-kv code { font-size: 12px; overflow-wrap: anywhere; background: var(--bg); padding: 4px 6px; border-radius: 6px; }
.dm-tpl { display: block; width: 100%; text-align: left; margin-bottom: 8px; padding: 12px 14px; }
.dm-tpl small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
dialog.dm-dlg { width: min(94vw, 520px); max-height: 86vh; }
.dm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.dm-prev { position: sticky; top: 12px; }
.adm .wrap:has(.dm-editor) { max-width: 1040px; }
.dm-sec { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.dm-radio { display: inline-flex; min-height: 40px; margin: 2px 14px 2px 0; }
.dm-radio input, .dm .ck input { width: 20px; height: 20px; }
.dm-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; max-height: 360px; overflow: auto; }
.dm-m { padding: 0; background: var(--bg); color: var(--ink); border: 3px solid transparent; border-radius: 12px; overflow: hidden; text-align: left; font-weight: 600; }
.dm-m img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.dm-m small { display: block; font-size: 11px; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-m.on { border-color: var(--accent); }
.dm-msged textarea { min-height: 110px; }
.dm-btnrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 6px; margin-bottom: 6px; }
.dm-imgprev { max-width: 120px; border-radius: 10px; margin-top: 6px; display: block; }
.dm-probs { margin: 0; padding-left: 20px; color: #9B1C12; font-weight: 600; font-size: 15px; }
.dm-simphone { max-width: 320px; margin: 8px auto 0; }
/* 휴대폰 미리보기 */
.phone { background: #fff; border: 8px solid #1D1B19; border-radius: 34px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.15); font-size: 14px; }
.ph-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #eee; font-size: 14px; }
.ph-head img, .ph-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #ddd; display: inline-block; }
.ph-body { padding: 12px 10px 16px; min-height: 380px; max-height: 620px; overflow: auto; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.ph-row { display: flex; }
.ph-row.me { justify-content: flex-end; }
.ph-col { display: flex; flex-direction: column; gap: 6px; max-width: 86%; min-width: 0; }
.ph-msg { background: #EFEFEF; color: #111; padding: 9px 12px; border-radius: 18px; white-space: pre-wrap; word-break: break-word; line-height: 1.4; }
.ph-msg.me { background: #7B3FF2; color: #fff; max-width: 80%; }
.ph-msg.has-btn { padding-bottom: 4px; }
.ph-btns { margin: 8px -12px 0; border-top: 1px solid #ddd; }
.ph-btn { text-align: center; font-weight: 700; color: #111; padding: 9px 8px; border-bottom: 1px solid #ddd; font-size: 13px; cursor: pointer; }
.ph-btns .ph-btn:last-child { border-bottom: 0; }
.ph-btn.pb { color: #3B5BDB; }
.ph-btn.empty { color: #B8B0A8; text-decoration: line-through; }
.ph-img { max-width: 200px; border-radius: 16px; display: block; }
.ph-note { align-self: center; font-size: 12px; color: #777; background: #F6F6F6; padding: 5px 10px; border-radius: 99px; text-align: center; max-width: 95%; }
.ph-cards { display: flex; gap: 8px; overflow-x: auto; max-width: 250px; scroll-snap-type: x mandatory; }
.ph-card { flex: 0 0 200px; background: #fff; border: 1px solid #ddd; border-radius: 16px; overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: column; }
.ph-card.solo { flex: none; width: 210px; }
.ph-card img, .ph-noimg { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #eee; display: grid; place-items: center; color: #999; font-size: 12px; }
.ph-card b { padding: 8px 10px 0; font-size: 13px; }
.ph-card small { padding: 2px 10px 6px; color: #777; font-size: 12px; }
.ph-card .ph-btn { border-top: 1px solid #ddd; border-bottom: 0; }
@media (max-width: 760px) {
  .dm-grid { grid-template-columns: 1fr; }
  .dm-prev { position: static; max-width: 340px; margin: 0 auto; }
  .dm-kv { grid-template-columns: 1fr auto; }
  .dm-kv span { grid-column: 1 / -1; font-weight: 700; }
  .dm-btnrow { grid-template-columns: 1fr; }
}

/* 하루 인원 제한 (관리 화면) */
.card.quota { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card.quota small { display: block; margin-top: 2px; }
.card.quota.off { background: #FFF1EF; border-color: #F3C2BC; }
/* 인스타 앱 안 DM 안내 창 (2026-10-05) */
.dmsheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.dm-box { width: 100%; max-width: 480px; background: #fff; color: #222; border-radius: 20px 20px 0 0; padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 12px; }
.dm-box b { font-size: 19px; line-height: 1.4; word-break: keep-all; }
.dm-box ol { margin: 0; padding-left: 22px; font-size: 17px; line-height: 1.7; word-break: keep-all; }
.dm-go { display: block; text-align: center; background: var(--brand, #2F5BEA); color: #fff; font-weight: 800; font-size: 18px; padding: 18px; border-radius: 14px; text-decoration: none; min-height: 60px; box-sizing: border-box; }
.dm-x { background: none; border: 0; color: #777; font-size: 16px; padding: 8px; }
