/* 데이터 분석 담당: 팀 화면 02번 카드 색(핑크)을 사이드바에 쓴다 */
:root {
  --agent: #ff2e93; --agent-d: #d81b77; --agent-50: #fff0f7;
  --ink: #161514; --sub: #5f5a54; --muted: #9a948b; --line: #ece7df; --bg: #f7f5f1; --card: #fff; --on: #16c45a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Pretendard, -apple-system, "Malgun Gothic", sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.layout { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.side { background: var(--agent); color: #fff; display: flex; flex-direction: column; padding: 20px 12px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; padding: 0 8px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: #fff; color: var(--agent); display: grid; place-items: center; font-weight: 300; font-size: 16px; }
.brand-sub { margin: 8px 8px 18px; font-size: 12px; color: rgba(255,255,255,.82); }
.bpick { display: block; margin: 0 4px 16px; background: rgba(255,255,255,.16); border-radius: 12px; padding: 8px 10px; }
.bpick span { display: block; font-size: 11px; color: rgba(255,255,255,.8); font-weight: 600; margin-bottom: 2px; }
.bpick select { width: 100%; background: transparent; border: 0; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; outline: none; }
.bpick select option { color: var(--ink); }
.brandtag { display: inline-flex; align-items: center; gap: 6px; background: var(--agent-50); color: var(--agent-d); font-weight: 800; border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.blist { display: flex; flex-direction: column; }
.brow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.brow:last-child { border-bottom: 0; }
.brow .nm { font-weight: 800; }
.brow .cur { font-size: 11px; font-weight: 700; color: var(--agent-d); background: var(--agent-50); border-radius: 6px; padding: 1px 7px; }
.brow .mchips { display: flex; gap: 4px; margin-left: 6px; }
.brow .mchips i { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; border-radius: 5px; padding: 1px 6px; }
.brow .act { margin-left: auto; display: flex; gap: 6px; }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.addrow { display: flex; gap: 8px; margin-top: 12px; }
.addrow .field { max-width: 280px; }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: rgba(255,255,255,.9); font-weight: 600; }
nav a:hover { background: rgba(255,255,255,.15); }
nav a.on { background: #fff; color: var(--agent-d); }
nav .navsep { border: 0; border-top: 1px solid rgba(255,255,255,.3); margin: 8px 6px; }
.nav-bottom { margin-top: auto; padding-top: 8px; }
.foot { margin-top: 8px; font-size: 12px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.3); display: flex; flex-direction: column; gap: 6px; }
.foot a, .foot button { color: rgba(255,255,255,.85); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.foot a:hover, .foot button:hover { color: #fff; }

main { overflow-y: auto; padding: 28px 32px 70px; }
.head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 2px; }
.kpi .h { font-size: 12px; color: var(--muted); }

.mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mod { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mod .no { font-size: 12px; font-weight: 700; color: var(--agent); }
.mod h3 { margin: 0; font-size: 17px; }
.mod p { margin: 0; color: var(--sub); font-size: 13px; }
.mod .ft { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: #f2eee8; color: var(--sub); display: inline-flex; align-items: center; gap: 6px; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.on { background: #dcfce7; color: #15803d; } .pill.on i { background: var(--on); }
.link { font-size: 13px; font-weight: 700; color: var(--agent-d); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; }
.panel h2 { margin: 0 0 12px; font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--agent); font-weight: 700; font-size: 12px; padding-top: 2px; }
.steps b { display: block; }
.steps span { color: var(--sub); font-size: 13px; }
.need { display: flex; flex-wrap: wrap; gap: 8px; }
.need span { background: var(--agent-50); color: var(--agent-d); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
.empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 34px 16px; text-align: center; color: var(--muted); }

.media-h { display: flex; align-items: center; gap: 12px; }
.media-h h2 { margin: 0; }
.media-h .pill { margin-left: auto; }
.mlogo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; flex: none; }
.mlogo.nv { background: #03c75a; } .mlogo.mt { background: #0866ff; } .mlogo.gg { background: #fbbc05; color: #161514; }
.media.dim { opacity: .6; }
.okline { margin-top: 12px; background: #f0fdf4; color: #166534; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.kform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.kform label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.kbtns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.kform .err { grid-column: 1 / -1; }
.small { font-size: 12px; margin: 10px 0 0; }
.btn.danger { color: #dc2626; border-color: #fecaca; }
.btn:disabled { opacity: .6; cursor: default; }
@media (max-width: 900px) { .kform { grid-template-columns: 1fr; } }
/* ---- 매체별 광고 성과 ---- */
.head .grow { flex: 1; min-width: 160px; }
.adbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 8px; font-size: 12.5px; color: var(--sub); font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--agent); color: #fff; }
.dates { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 4px 8px; font-size: 12.5px; }
.dates input { border: 0; font-size: 12.5px; background: none; }
.mtabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mtabs button { display: flex; align-items: center; gap: 9px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; cursor: pointer; }
.mtabs button i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; background: var(--mc); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; flex: none; }
.mtabs button b { font-size: 14px; }
.mtabs button span { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.mtabs button.on { border-color: var(--mc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 16%, transparent); }
.mtabs button.on span { color: var(--ink); }
.mtabs button.off { opacity: .55; }
.kgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 14px; }
.kc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; min-width: 0; }
.kc.main { background: var(--agent); border-color: var(--agent); color: #fff; }
.kc .l { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc.main .l { color: rgba(255,255,255,.85); }
.kc .v { font-size: 21px; font-weight: 800; margin: 3px 0 4px; letter-spacing: -.3px; white-space: nowrap; }
.kc .pv { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; }
.kc .pvv { color: var(--muted); }
.kc.main .pvv { color: rgba(255,255,255,.8); }
.dl { font-weight: 800; color: var(--muted); }
.dl.good { color: #16a34a; } .dl.bad { color: #e11d48; }
.kc.main .dl { color: #fff; }
.adrow { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; }
.adrow .panel { margin-bottom: 14px; }
.chartbox { height: 250px; position: relative; }
table.mt, table.ct { width: 100%; border-collapse: collapse; font-size: 13px; }
.mt th, .ct th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mt td, .ct td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mt tr[data-media] { cursor: pointer; } .mt tr[data-media]:hover td { background: var(--agent-50); }
.mt tr.off td { color: var(--muted); }
.mt td:first-child { white-space: nowrap; }
.stchg .btn { white-space: nowrap; }
.kc.hl { background: var(--ink); border-color: var(--ink); color: #fff; } .kc.hl .l, .kc.hl .pvv { color: rgba(255,255,255,.75); } .kc.hl .dl.good { color: #4ade80; } .kc.hl .dl.bad { color: #fb7185; }
.mt tr.sum td { font-weight: 800; background: var(--agent); color: #fff; border: 0; }
.mt tr.sum td:first-child { border-radius: 10px 0 0 10px; } .mt tr.sum td:last-child { border-radius: 0 10px 10px 0; }
td.r, .ct th[data-sort] { text-align: right; }
.mdot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-weight: 900; font-size: 11px; margin-right: 8px; vertical-align: middle; }
.mdot.sm { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; margin-right: 6px; }
.share { display: inline-block; width: 64px; height: 7px; background: #f2eee8; border-radius: 9px; overflow: hidden; vertical-align: middle; }
.share i { display: block; height: 100%; border-radius: 9px; }
.share.thin { display: block; width: 100%; max-width: 260px; height: 4px; margin-top: 6px; }
.share.thin i { background: var(--agent); }
.sv { font-size: 11.5px; color: var(--sub); margin-left: 6px; white-space: nowrap; }
.mt td:nth-child(3) { white-space: nowrap; }
.ct th[data-sort] { cursor: pointer; user-select: none; }
.ct th.on { color: var(--agent-d); }
.ct tbody tr:hover td { background: #fcfaf7; }
.ctype { font-size: 11px; color: var(--muted); margin-left: 6px; }
.warn.soft { color: #c2410c; background: #ffedd5; }
.warn { font-size: 10.5px; font-weight: 800; color: #e11d48; background: #ffe4e6; border-radius: 5px; padding: 1px 6px; margin-left: 6px; }
td.bad { color: #e11d48; font-weight: 700; }
.tscroll { overflow-x: auto; }
@media (max-width: 1300px) { .kgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .adrow { grid-template-columns: 1fr; } .mtabs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kgrid { grid-template-columns: repeat(2, 1fr); } }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--agent); border-color: var(--agent); color: #fff; }
.btn.lg { width: 100%; padding: 11px; font-size: 14px; }

.login-body { background: var(--bg); }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; width: min(340px, 100%); display: flex; flex-direction: column; gap: 9px; }
.login-logo { width: 48px; height: 48px; border-radius: 13px; background: var(--agent); color: #fff; display: grid; place-items: center; font-weight: 300; font-size: 20px; margin: 0 auto 4px; }
.login-title { font-size: 19px; font-weight: 800; text-align: center; }
.field { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.field:focus { outline: 2px solid #ffc2df; border-color: var(--agent); }
.err { color: #dc2626; font-size: 12.5px; min-height: 16px; }

@media (max-width: 1000px) { .mods { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100vh; }
  .side { flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; overflow-x: auto; }
  .brand span:not(.logo), .brand-sub, .foot { display: none; }
  nav { flex-direction: row; } nav a { padding: 8px 10px; white-space: nowrap; } nav .navsep { display: none; }
  .nav-bottom { margin: 0; padding: 0; }
  main { padding: 20px 16px 60px; overflow: visible; }
}

/* ---- 랜딩페이지 · 고객 문의 ---- */
.field.sm { padding: 6px 9px; font-size: 13px; width: auto; }
.lpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.lpc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s; }
a.lpc:hover { box-shadow: 0 10px 26px rgba(0,0,0,.06); border-color: #ffc2df; }
.lpc-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lpc-h b { font-size: 16px; }
.lpc-n { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.lpc-n div { background: var(--bg); border-radius: 10px; padding: 8px 4px; text-align: center; }
.lpc-n b { display: block; font-size: 17px; }
.lpc-n span { font-size: 11px; color: var(--muted); }
.lpc-f { display: flex; justify-content: space-between; align-items: center; }
.lpc.new { border: 1.5px dashed #ffc2df; background: var(--agent-50); }
.slugin { display: flex; align-items: center; gap: 4px; }
.slugin span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.etabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.etabs a { padding: 9px 14px; font-weight: 700; color: var(--sub); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.etabs a.on { color: var(--agent-d); border-bottom-color: var(--agent); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.editor.wide { grid-template-columns: 1fr; }
.epanel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.editor.wide .epanel { background: none; border: 0; padding: 0; }
.ef { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; color: var(--sub); }
.ef small { font-weight: 500; color: var(--muted); }
.ef textarea.field { resize: vertical; font: inherit; font-weight: 500; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.colin { display: flex; gap: 6px; } .colin input[type=color] { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: #fff; }
.statsin { display: grid; grid-template-columns: 1fr 1.6fr 1fr 1.6fr; gap: 6px; }
.imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.im { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.im img { width: 100%; height: 100%; object-fit: cover; }
.im button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; cursor: pointer; }
.im .up { right: auto; left: 4px; }
.im.add { display: grid; place-items: center; cursor: pointer; color: var(--agent-d); font-weight: 700; border-style: dashed; }
.seg.wrap { flex-wrap: wrap; }
.qe { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 8px; background: #fcfbf9; }
.qe-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qe-h b { color: var(--agent-d); }
.qe-h .grow, .head .grow { flex: 1; }
.qe textarea.field { font: inherit; resize: vertical; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); cursor: pointer; }
.chk input { accent-color: var(--agent); width: 16px; height: 16px; }
.chk.big { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.cond { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--sub); background: var(--agent-50); border-radius: 10px; padding: 8px 10px; }
.panel-in { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff; }
.utmout { display: flex; gap: 8px; align-items: center; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.utmout code { flex: 1; word-break: break-all; font-size: 12.5px; color: var(--ink); }
.phone { position: sticky; top: 12px; background: #1d1b19; border-radius: 30px; padding: 10px; }
.phone-bar { display: flex; gap: 4px; justify-content: center; margin-bottom: 8px; }
.phone-bar button { border: 0; background: none; color: #a8a29e; font-size: 12px; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.phone-bar button.on { background: #fff; color: #1d1b19; font-weight: 700; }
.phone iframe { width: 100%; height: 720px; border: 0; border-radius: 22px; background: #fff; display: block; }
.phone.pc { position: fixed; inset: 40px; z-index: 40; border-radius: 18px; }
.phone.pc iframe { height: calc(100% - 34px); border-radius: 12px; }
.savebar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 12px 10px 18px; display: flex; gap: 14px; align-items: center; font-size: 13.5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 30; }
.kpi .v.sm { font-size: 18px; }
.savebar[hidden], .n[hidden] { display: none; }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fr { display: grid; grid-template-columns: 34px minmax(120px, 1.2fr) 2fr 60px 80px; gap: 10px; align-items: center; font-size: 13px; }
.fq { font-weight: 800; color: var(--agent-d); } .fl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }
.fb { position: relative; height: 18px; background: #f4f1ec; border-radius: 6px; overflow: hidden; }
.fb i { position: absolute; left: 0; top: 0; bottom: 0; background: #ffc2df; border-radius: 6px; } .fb i.d { background: var(--agent); }
.fn { text-align: right; color: var(--sub); } .fd { text-align: right; font-weight: 700; color: var(--sub); } .fd.bad { color: #e11d48; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 140px; align-items: end; }
.hours div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.hours i { width: 100%; background: var(--agent); border-radius: 4px 4px 0 0; min-height: 2px; }
.hours span { font-size: 10px; color: var(--muted); height: 12px; }
.lfbar { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.lfbar #lfq { min-width: 240px; }
.stchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.stchips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.stchips button i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); }
.stchips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.stb { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, #fff); border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.medtag { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--mc); border-radius: 5px; padding: 1px 7px; }
.medtag[style*="#fae100"] { color: #3c1e1e; }
.lt tbody tr { cursor: pointer; } .lt td.memo { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager { display: flex; justify-content: center; gap: 10px; align-items: center; margin-top: 12px; }
.drawer { position: fixed; inset: 0; background: rgba(22,21,20,.35); z-index: 50; display: flex; justify-content: flex-end; }
.dw { width: min(480px, 100%); height: 100%; background: #fff; overflow-y: auto; padding: 20px 22px 40px; display: flex; flex-direction: column; gap: 8px; }
.dw-h { display: flex; justify-content: space-between; align-items: center; } .dw-h b { font-size: 19px; }
.dw h3 { font-size: 14px; margin: 14px 0 4px; }
.qa, .hist { list-style: none; margin: 0; padding: 0; }
.qa li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.qa li span { color: var(--sub); } .qa li b { text-align: right; }
.hist li { font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.hist li.lnk { cursor: pointer; color: var(--agent-d); }
.stpick { display: flex; flex-wrap: wrap; gap: 6px; }
.stpick button { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--sub); cursor: pointer; }
.stpick button.on { border-color: var(--sc); color: var(--sc); background: color-mix(in srgb, var(--sc) 10%, #fff); }
.stchg { display: flex; gap: 6px; margin-top: 6px; }
.dw textarea.field { font: inherit; resize: vertical; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
#toast.on { opacity: 1; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .phone { position: static; } .phone iframe { height: 640px; } }
@media (max-width: 700px) { .row2, .statsin { grid-template-columns: 1fr; } .fr { grid-template-columns: 30px 1fr 60px; } .fr .fb, .fr .fd { display: none; } }
/* ---- 고객 DB · KPI · 매장 ---- */
.panel.tight { padding: 6px 8px; }
.stabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.stabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 7px 14px; font-weight: 700; cursor: pointer; font-size: 13px; }
.stabs button b { color: var(--sc); margin-left: 3px; }
.stabs button.on { border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 15%, transparent); }
.dbfilter { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.dbfilter #dbq { min-width: 220px; }
.fchips { display: flex; gap: 4px; }
.fchips button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 8px; font-size: 12px; cursor: pointer; color: var(--sub); }
.fchips button b { color: var(--sc); }
.fchips button.on { background: var(--sc); color: #fff; border-color: var(--sc); } .fchips button.on b { color: #fff; }
.dbt { font-size: 12.5px; } .dbt td { padding: 6px 6px; } .dbt th { padding: 8px 6px; }
.dbt tbody tr { cursor: pointer; }
td.nw, .nw { white-space: nowrap; } td.cut { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } td.cut.wide { max-width: 220px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--sub); white-space: nowrap; }
.src { font-size: 11px; font-weight: 800; background: var(--bg); border-radius: 5px; padding: 1px 6px; }
.isel { border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 3px 4px; font: inherit; font-size: 12.5px; cursor: pointer; max-width: 110px; }
.isel:hover { border-color: var(--line); background: #fff; }
.isel.grade { font-weight: 800; color: var(--gc); background: color-mix(in srgb, var(--gc) 12%, #fff); }
.isel.st { font-weight: 800; color: var(--sc); }
.gen, .mtg { border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.gen.on { background: #dcfce7; color: #15803d; border-color: #bbf7d0; } .gen.fake { background: #ffe4e6; color: #be123c; border-color: #fecdd3; }
.mtg.on { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.drawer.center { justify-content: center; align-items: center; padding: 16px; }
.mbox { background: #fff; border-radius: 18px; padding: 20px 22px; width: min(640px, 100%); max-height: 92vh; overflow-y: auto; }
.mbox h2 { margin: 0 0 6px; font-size: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.dw .fgrid .ef, .mbox .fgrid .ef { margin-bottom: 8px; }
.howto { margin: 8px 0; padding-left: 20px; font-size: 13.5px; line-height: 1.8; }
.goal { display: block; padding: 16px 20px; color: inherit; }
.goal-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.goal-v { font-size: 15px; margin-top: 2px; } .goal-v b { font-size: 30px; color: var(--agent-d); }
.goal-side { font-size: 13px; color: var(--sub); }
.gbar { position: relative; height: 12px; background: #f4efe8; border-radius: 9px; margin-top: 10px; overflow: hidden; }
.gbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #ff7ab8, var(--agent)); border-radius: 9px; }
.gbar span { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .5; }
.kgrid.k10 { grid-template-columns: repeat(5, 1fr); }
.kc .pv b { color: var(--ink); } .kc.main .pv b, .kc.hl .pv b { color: #fff; }
.link.sm { background: none; border: 0; padding: 0; font-size: 12px; cursor: pointer; color: var(--agent-d); font-weight: 700; }
.adrow.three { grid-template-columns: 1fr 1fr 1fr; }
.funnel2 { display: flex; flex-direction: column; gap: 10px; }
.f2 { display: flex; align-items: center; gap: 10px; }
.f2b { background: var(--agent); color: #fff; border-radius: 8px; padding: 8px 10px; min-width: 44px; text-align: right; transition: width .3s; }
.f2:nth-child(2) .f2b { background: #ff5aa8; } .f2:nth-child(3) .f2b { background: #2563eb; } .f2:nth-child(4) .f2b { background: #16a34a; }
.f2 span { font-size: 13px; white-space: nowrap; } .f2 em { font-style: normal; color: var(--muted); font-size: 12px; }
.hb { display: grid; grid-template-columns: 120px 1fr 36px; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 6px; }
.hb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sub); }
.hb div { height: 9px; background: #f4efe8; border-radius: 9px; overflow: hidden; } .hb i { display: block; height: 100%; background: var(--agent); border-radius: 9px; }
.hb b { text-align: right; }
.kt { font-size: 12px; } .kt th { white-space: nowrap; font-size: 11px; text-align: right; } .kt th:first-child { text-align: left; }
.kt td { padding: 7px 6px; } .kt tr.cur td { background: var(--agent-50); }
.kt tr.sum td { font-weight: 800; background: var(--ink); color: #fff; }
.costb { border: 0; background: none; font: inherit; color: var(--agent-d); cursor: pointer; text-decoration: underline dotted; }
.kt tr.sum .costb { color: #fff; }
@media (max-width: 1200px) { .kgrid.k10 { grid-template-columns: repeat(3, 1fr); } .adrow.three { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .fgrid { grid-template-columns: 1fr; } .kgrid.k10 { grid-template-columns: repeat(2, 1fr); } }
/* ---- 본문은 무채색 (왼쪽 메뉴만 02 핑크) — 2026-10-19 사용자 요청. 매체는 매체 대표색으로만 구분 ---- */
main { --agent: #161514; --agent-d: #161514; --agent-50: #f1efeb; }
main .kc.main { background: #161514; border-color: #161514; }
main .kc.hl { background: #fff; color: var(--ink); border: 2px solid #161514; }
main .kc.hl .l, main .kc.hl .pvv { color: var(--muted); } main .kc.hl .pv b { color: var(--ink); }
main .kc.hl .dl.good { color: #16a34a; } main .kc.hl .dl.bad { color: #e11d48; }
main .gbar i { background: #161514; }
main .goal-v b { color: #161514; }
main .brandtag { background: #f1efeb; color: #44403c; }
main .seg button.on { background: #161514; }
main .f2b { background: #161514; } main .f2:nth-child(2) .f2b { background: #57534e; } main .f2:nth-child(3) .f2b { background: #a8a29e; } main .f2:nth-child(4) .f2b { background: #16a34a; }
main .hb i { background: #57534e; }
main .fb i { background: #d6d3d1; } main .fb i.d { background: #161514; }
main .hours i { background: #44403c; }
main .lpc.new { border-color: #d6d3d1; background: #faf9f7; }
main .mt tr.sum td { background: #161514; }
main .kt tr.cur td { background: #f5f3ef; }
main .btn.primary { background: #161514; border-color: #161514; }
main .etabs a.on { color: #161514; border-bottom-color: #161514; }
main .cond { background: #f5f3ef; }
.aibox { background: linear-gradient(135deg, #f5f3ff, #fdf2f8); border: 1px solid #e9d5ff; border-radius: 14px; padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.aibox textarea { font: inherit; resize: vertical; }
.aiwhy { font-size: 12.5px; color: #5b21b6; background: #fff; border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; }
main .aibox .btn.primary { background: #7c3aed; border-color: #7c3aed; }
/* 고객 DB 상단: 월별 DB 수 · 진성율 */
.mstrip { display: flex; gap: 8px; margin-bottom: 12px; align-items: stretch; }
.mscroll { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding-bottom: 4px; scrollbar-width: thin; }
.mcell { flex: none; width: 150px; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; position: relative; font: inherit; color: var(--ink); }
.mcell:hover { border-color: #a8a29e; }
.mcell.on { border-color: #161514; box-shadow: 0 0 0 3px rgba(22,21,20,.1); }
.mcell.all { width: 170px; background: #faf9f7; }
.mcell .ml { font-size: 12px; font-weight: 700; color: var(--sub); }
.mcell > b { font-size: 24px; line-height: 1.1; } .mcell > b small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.mcell .md { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; color: var(--muted); }
.mcell .md.up { color: #16a34a; } .mcell .md.dn { color: #e11d48; }
.mbar { display: flex; height: 6px; background: #eeeae4; border-radius: 9px; overflow: hidden; margin: 3px 0 2px; }
.mbar i { display: block; height: 100%; } .mbar i.g { background: #16a34a; } .mbar i.x { background: #fb7185; }
.mcell .mr { font-size: 12.5px; color: var(--sub); } .mcell .mr b { color: #15803d; font-size: 14px; }
.mcell .ms { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }