/* 모듈 3 · 성과·광고 */
.pf .pf-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pf .pf-head > div:first-child { flex: 1; min-width: 220px; }
.pf .pf-scope { min-width: 160px; }
.pf .pf-me { font-size: 13px; color: var(--mute); padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.pf-range { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.pf-range .inp { width: 140px; }
.pf .btn.on { background: var(--grad); color: #fff; border-color: transparent; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pf-grid > .pf-span, .pf-grid > .pf-fun { grid-column: 1 / -1; }
@media (max-width: 1100px) { .pf-grid { grid-template-columns: 1fr; } }
.pf .card { padding: 16px 18px; min-width: 0; }
.pf-ch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pf-ch h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.pf-ch .mut { font-size: 12px; }
.pf-ch .seg { margin-left: auto; display: flex; gap: 4px; }
.pf-ch .lg { margin-left: auto; font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 6px; }
.pf-ch .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.pf-ch .lg i.a { background: #3b82f6; } .pf-ch .lg i.b { background: #06b6d4; margin-left: 8px; }
/* 퍼널 단계 */
.pf-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pf-step { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; min-width: 0; }
.pf-step .l { font-size: 12px; color: var(--mute); font-weight: 600; }
.pf-step .n { display: block; font-size: 24px; font-weight: 800; background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--navy-600); font-variant-numeric: tabular-nums; }
.pf-step .n:hover { color: var(--blue-500); text-decoration: underline; }
.pf-step .bar { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pf-step .bar i { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: 4px; }
.pf-step .m { margin-top: 6px; font-size: 11px; color: var(--mute); line-height: 1.35; word-break: keep-all; }
@media (max-width: 900px) { .pf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-kpi4 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pf-kpi4 > div { flex: 1; min-width: 140px; padding: 8px 12px; border-radius: var(--r-sm); background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(6,182,212,.06)); }
.pf-kpi4 span { display: block; font-size: 11px; color: var(--mute); }
.pf-kpi4 b { font-size: 16px; color: var(--text); white-space: nowrap; }
/* 막대 */
.pf-bars { width: 100%; overflow: hidden; }
.pf-bars svg { width: 100%; display: block; }
/* 표 */
.pf-tbl { overflow-x: auto; }
.pf-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.pf-tbl th { text-align: right; font-weight: 600; color: var(--mute); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.pf-tbl th:first-child, .pf-tbl td.k { text-align: left; }
.pf-tbl td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.pf-tbl td.k { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.pf-tbl td.pc { font-weight: 700; color: var(--navy-600); }
.pf-tbl tr:hover td { background: rgba(37,99,235,.04); }
.pf-tbl tr.top td { background: linear-gradient(90deg, rgba(250,204,21,.12), transparent); }
.pf-n { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-500); cursor: pointer; font-weight: 600; }
.pf-n:hover { text-decoration: underline; }
.pf-n0 { color: var(--mute-2); }
.pf-note { font-size: 12px; margin: 8px 0 0; }
/* 광고비 입력 */
.pf-spend { border: 1px dashed var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 12px; background: var(--surface-2); }
.pf-spend .row { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-spend .row .inp { width: 140px; } .pf-spend .row .inp:nth-child(3) { flex: 1; min-width: 180px; }
.pf-spend .lst { margin-top: 8px; max-height: 220px; overflow: auto; }
.pf-spend .lst > div { display: grid; grid-template-columns: 56px 80px 1fr 110px 56px; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.pf-spend .lst b { text-align: right; }
/* 카드형 숫자 */
.pf-mecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pf-mecards > div { padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); min-width: 0; }
.pf-mecards > div.clk { cursor: pointer; } .pf-mecards > div.clk:hover { border-color: var(--blue-400); }
.pf-mecards span { display: block; font-size: 12px; color: var(--mute); }
.pf-mecards b { display: block; font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.pf-mecards b.mut { background: none; color: var(--mute-2); font-size: 16px; }
.pf-mecards small { font-size: 11px; color: var(--mute); font-weight: 500; margin-left: 2px; }
.pf-mecards .goal { grid-column: span 2; background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(6,182,212,.08)); }
/* 게이지 */
.pf-gauge { position: relative; height: 18px; min-width: 110px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.pf-gauge i { position: absolute; inset: 0 auto 0 0; background: var(--grad); border-radius: 999px; }
.pf-gauge span { position: relative; font-size: 11px; font-weight: 700; padding: 0 8px; line-height: 18px; color: var(--navy-800); }
/* 계약률 */
.pf-rate > div { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(130px, auto) 140px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.pf-rate .k { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-rate .mut { font-size: 12px; white-space: nowrap; }
/* 드릴다운 서랍 */
.pf-drill { height: calc(100vh - 140px); min-height: 300px; display: flex; flex-direction: column; }
.pf-drill.sm { height: 300px; }
.pf-drill .vt { flex: 1; min-height: 0; }
/* 광고 계정 */
.pf-plat .row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .pf-plat .row .inp { flex: 1; min-width: 180px; }
.pf-plat h4 { margin: 10px 0 4px; font-size: 12px; color: var(--mute); }
.pf-plat ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.pf-st { margin-left: auto; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--mute); }
.pf-st.on { background: rgba(5,150,105,.12); color: var(--ok); }
.pf .btn[disabled] { opacity: .55; cursor: not-allowed; }
/* 2차 QA: 일자별 그래프가 반쪽만 차지하던 것 → 한 줄 전체 */
.pf-grid > .pf-days:only-child, .pf-grid > .pf-days:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pf-grid .card { transition: box-shadow .15s, transform .15s; }
.pf-grid .card:hover { box-shadow: 0 14px 30px rgba(15,30,80,.10), 0 0 0 1px rgba(59,130,246,.2); }

/* v40 r3: 계약 이후 결과 · 한 줄 요약 */
.pf .pf-line { margin: 10px 0 0; font-weight: 600; color: var(--ink, #0f172a); letter-spacing: -.01em; }
.pf .pf-outs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.pf .pf-outs .o { border-radius: 14px; padding: 12px 14px; background: rgba(59,130,246,.06); border: 1px solid rgba(59,130,246,.15); display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; }
.pf .pf-outs .o:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(30,58,138,.12); }
.pf .pf-outs .o span { font-size: 12px; color: #64748b; }
.pf .pf-outs .o em { font-style: normal; font-size: 12px; color: #64748b; }
.pf .pf-outs .o .pf-n, .pf .pf-outs .o .pf-n0 { font-size: 22px; font-weight: 800; text-align: left; }
.pf .pf-outs .o-승인 { background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.25); }
.pf .pf-outs .o-환불 { background: rgba(239,68,68,.07); border-color: rgba(239,68,68,.22); }
.pf .pf-outs .o-진행중단 { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); }
.pf .seg { flex-wrap: wrap; }
@media (max-width: 1100px) { .pf .pf-outs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 설정 › 광고 연결 (settings.js AdsConnect) */
.ads-wrap { display: grid; gap: 14px; }
.ads-plat .ads-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ads-plat .ads-h h3 { margin: 0; font-size: 15px; }
.ads-st { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: #64748b; margin-right: auto; }
.ads-st.on { background: rgba(16,185,129,.12); color: #047857; }
.ads-url { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 6px 0; }
.ads-url small { color: #64748b; }
.ads-url code { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 10px; font-size: 12px; overflow-wrap: anywhere; word-break: break-all; }
.ads-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.ads-keys label { display: flex; flex-direction: column; gap: 4px; }
.ads-keys em { font-style: normal; font-size: 11px; margin-left: 4px; }
.ads-keys em.ok { color: #047857; } .ads-keys em.no { color: #b91c1c; }
.ads-plat details { margin-top: 10px; } .ads-plat summary { cursor: pointer; color: #1d4ed8; font-weight: 600; font-size: 13px; }
.ads-plat ol { margin: 8px 0 0 18px; line-height: 1.7; font-size: 13px; }
@media (max-width: 1100px) { .ads-keys { grid-template-columns: 1fr; } .ads-url { grid-template-columns: 1fr auto; } .ads-url small { grid-column: 1 / -1; } }

/* r7 P: 전체 행 · 내 성과 */
.pf-tbl tr.pf-all td{background:rgba(59,130,246,.07);font-weight:700;border-bottom:2px solid rgba(59,130,246,.25)}
.pf-tbl tr.pf-all td.k{color:#1d4ed8}
.pf-mehead .pf-ch{flex-wrap:wrap;gap:8px}
.pf-mehead .seg{display:flex;gap:6px;align-items:center}
.pf-mehead input[type=month]{height:30px;padding:0 8px}
.pf-mecards.pf-me6{grid-template-columns:repeat(6,minmax(0,1fr));display:grid;gap:10px}
.pf-mecards.pf-me6>div{min-width:0}
.pf-mecards .clk{cursor:pointer}
@media (max-width:1200px){.pf-mecards.pf-me6{grid-template-columns:repeat(3,minmax(0,1fr))}}
