/* OakPod 대시보드: 어두운 바탕 위에 선명한 차트 색 네 가지 */
:root { --c-open: #e9c46a; --c-lock: #b79cff; --c-join: #6ec6ff; --c-get: #7be0a8; --c-4: #ff9f7a; --c-5: #f48fb1; --c-6: #9aa4b2; }
.dh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.seg button { font: inherit; font-size: 13.5px; font-weight: 650; padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--gold-soft); color: var(--gold); }
#dHub { width: auto; max-width: 220px; height: 38px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { position: relative; overflow: hidden; padding: 16px 18px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.kpi .k-l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .k-l i { width: 8px; height: 8px; border-radius: 50%; background: var(--kc); }
.kpi .k-n { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .k-s { font-size: 12.5px; color: var(--subtle); }
.kpi svg { display: block; width: 100%; height: 38px; margin-top: 8px; }
.card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 18px 20px; min-width: 0; }
.card h3 { margin: 0 0 2px; font-size: 16px; } .card .sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.chart-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend button { font: inherit; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; cursor: pointer; padding: 2px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--lc); } .legend button.off { opacity: .35; }
.area { width: 100%; height: auto; display: block; }
.area text { fill: var(--subtle); font-size: 11px; }
.area .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.donut-wrap { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut { position: relative; width: 170px; height: 170px; } .donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .ctr { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .ctr b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; } .donut .ctr span { font-size: 12px; color: var(--muted); }
.vias { display: grid; gap: 9px; }
.via { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 9px; align-items: center; font-size: 14px; }
.via i { width: 10px; height: 10px; border-radius: 3px; background: var(--vc); } .via span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .via em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.via-posts-h { margin: 16px 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.via-posts { display: grid; gap: 6px; } .via-posts div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; } .via-posts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .via-posts em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12.5px; }
.funnel2 { display: grid; gap: 12px; }
.fn { display: grid; gap: 6px; }
.fn .fh { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; } .fn .fh b { font-variant-numeric: tabular-nums; font-size: 16px; } .fn .fh em { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 6px; background: var(--bc); min-width: 3px; transition: width .5s ease; }
.pbars { display: grid; gap: 14px; }
.pb { display: grid; gap: 6px; } .pb .pt { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; } .pb .pt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pb .pt em { font-style: normal; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.pb .two { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; } .pb .two i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; } .pb .two .o { background: var(--c-open); opacity: .9; } .pb .two .g { background: var(--c-get); }
.dempty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .kpi .k-n { font-size: 28px; } }

/* 지난 기간 대비 */
.k-d { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--muted, #9aa4b2); vertical-align: middle; }
.k-d.up { color: #7be0a8; } .k-d.down { color: #ff9f7a; }
/* 채널별 성과 */
.chtab { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 360px; }
.chtab th, .chtab td { text-align: right; padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); white-space: nowrap; }
.chtab th:first-child, .chtab td:first-child { text-align: left; }
.chtab th { font-size: 12px; color: var(--muted, #9aa4b2); font-weight: 600; }
.chtab small { color: var(--muted, #9aa4b2); margin-left: 4px; }
.chtab tr.best td { background: rgba(123, 224, 168, .06); }
.chtab em { font-style: normal; font-size: 11px; color: #7be0a8; border: 1px solid rgba(123, 224, 168, .4); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
/* 요일 × 시간대 */
.heat { display: grid; grid-template-columns: 28px repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 8px; }
.heat span { font-size: 11px; color: var(--muted, #9aa4b2); text-align: center; }
.heat .hy { text-align: left; line-height: 26px; }
.heat i { display: block; height: 26px; border-radius: 6px; background: rgba(233, 196, 106, var(--a)); outline: 1px solid rgba(255, 255, 255, .05); }
.ch-wrap { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: center; }
.ch-wrap .donut { margin: 0 auto; }
.chtab .dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--vc); margin-right: 7px; vertical-align: 1px; }
@media (max-width: 640px) { .ch-wrap { grid-template-columns: 1fr; } }
