*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Pretendard','Apple SD Gothic Neo',sans-serif;background:#f0f2f5;color:#111}
.shell{display:grid;grid-template-columns:240px 1fr;height:100vh;overflow:hidden}
.sidebar{background:#0a1628;color:#e2e8f0;display:flex;flex-direction:column;height:100vh;overflow-y:auto}
.sb-brand{padding:22px 20px 18px;border-bottom:1px solid rgba(255,255,255,.07)}
.sb-brand-logo{display:flex;align-items:center;gap:9px;text-decoration:none;margin-bottom:10px}
.sb-brand-box{width:28px;height:28px;background:#03C75A;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sb-brand-text{font-size:14px;font-weight:900;color:#fff}
.sb-brand-badge{font-size:10px;font-weight:700;color:#03C75A;background:rgba(3,199,90,.15);padding:2px 7px;border-radius:4px;border:1px solid rgba(3,199,90,.3)}
.sb-user{padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.07)}
.sb-user-name{font-size:13px;font-weight:700;color:#fff;margin-bottom:2px}
.sb-user-email{font-size:11px;color:#64748b}
.sb-user-badge{display:inline-block;font-size:10px;font-weight:700;color:#03C75A;background:rgba(3,199,90,.12);padding:2px 8px;border-radius:4px;margin-top:5px}
.sb-nav{flex:1;padding:14px 12px;display:flex;flex-direction:column;gap:3px;overflow-y:visible}
.sb-nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;font-size:13px;font-weight:600;color:#94a3b8;text-decoration:none;transition:all .15s}
.sb-nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.sb-nav a.active{background:rgba(3,199,90,.15);color:#03C75A;border:1px solid rgba(3,199,90,.2)}
.sb-nav a svg{opacity:.7;flex-shrink:0}
.sb-nav a.active svg{opacity:1}
.sb-divider{height:1px;background:rgba(255,255,255,.07);margin:8px 0}
.sb-footer{padding:14px 20px;border-top:1px solid rgba(255,255,255,.07);background:#0a1628}
.sb-footer a{font-size:11px;color:#475569;text-decoration:none;display:block;margin-bottom:4px}
.sb-footer a:hover{color:#94a3b8}
.main{display:flex;flex-direction:column;height:100vh;overflow-y:auto}
.topbar{background:#fff;border-bottom:1px solid #e8e8e8;padding:0 28px;display:flex;align-items:center;justify-content:space-between;height:56px;position:sticky;top:0;z-index:100;flex-shrink:0}
.topbar-title{font-size:15px;font-weight:800;color:#111;display:flex;align-items:center;gap:8px}
.topbar-actions{display:flex;gap:8px}
.content{padding:24px 28px;flex:1}
.btn{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border-radius:7px;padding:8px 14px;font-size:13px;font-weight:700;border:none;cursor:pointer;transition:all .15s;font-family:inherit}
.btn-primary{background:#03C75A;color:#fff}.btn-primary:hover{background:#02b350}
.btn-dark{background:#0a1628;color:#fff}.btn-dark:hover{background:#0d2040}
.btn-light{background:#fff;color:#444;border:1.5px solid #ddd}.btn-light:hover{border-color:#03C75A;color:#03C75A}
.btn-danger{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.btn-danger:hover{background:#fecaca}
.biz-bar{background:#fff;border:1.5px solid #f0f0f0;border-radius:10px;padding:12px 16px;margin-bottom:18px;font-size:13px;color:#555;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.biz-bar strong{color:#111}
.biz-bar-badge{font-size:11px;font-weight:700;background:#edfbf3;color:#0a7a3e;padding:2px 8px;border-radius:4px}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.page-head h1{font-size:20px;font-weight:900;color:#111;margin-bottom:4px}
.page-head p{font-size:13px;color:#888}
.page-head-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.panel{background:#fff;border:1.5px solid #f0f0f0;border-radius:12px;overflow:hidden;margin-bottom:0}
.panel-head{padding:14px 18px;border-bottom:1px solid #f5f5f5;display:flex;justify-content:space-between;align-items:center}
.panel-head-title{font-size:14px;font-weight:800;color:#111}
.panel-head-sub{font-size:12px;color:#03C75A;text-decoration:none;font-weight:700}
.panel-body{padding:16px 18px}
.empty{padding:32px;color:#ccc;text-align:center;font-size:13px}
table{width:100%;border-collapse:collapse}
td,th{padding:10px 12px;border-bottom:1px solid #f5f5f5;font-size:13px;text-align:left}
th{font-size:11px;font-weight:700;color:#aaa;background:#fafafa}
tr:last-child td{border-bottom:none}
tr:hover td{background:#fafafa}
.badge{padding:3px 8px;border-radius:4px;font-size:11px;font-weight:700}
.badge-active{background:#edfbf3;color:#0a7a3e}
.badge-pending{background:#fff7ed;color:#b45309}
.badge-closed{background:#f5f5f5;color:#888}
.badge-selecting{background:#eff6ff;color:#1d4ed8}
.badge-completed{background:#f5f3ff;color:#6d28d9}
.badge-cancelled{background:#fef2f2;color:#991b1b}
.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:20px}
.kpi{background:#fff;border:1.5px solid #f0f0f0;border-radius:12px;padding:16px;transition:all .15s}
.kpi:hover{border-color:#03C75A;transform:translateY(-1px)}
.kpi-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.kpi-label{font-size:11px;color:#999;font-weight:600}
.kpi-icon{width:28px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center}
.kpi-val{font-size:26px;font-weight:900;color:#111;letter-spacing:-.02em}
.kpi-val.green{color:#03C75A}.kpi-val.blue{color:#3b82f6}.kpi-val.orange{color:#f59e0b}
@media(max-width:1280px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.shell{grid-template-columns:1fr}.sidebar{display:none}}
@media(max-width:600px){.content{padding:16px}.topbar{padding:0 16px}.topbar-actions{display:none}}

/* ── 페이지별 공통 스타일 */
.top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.top h1{font-size:22px;font-weight:900;color:#111;margin:0 0 4px}
.top p{font-size:13px;color:#888;margin:0}
.head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.head h1{margin:0;font-size:22px;font-weight:900}
.title{font-size:22px;font-weight:900;color:#111;margin-bottom:12px}
.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.filters select,.filters input{padding:7px 10px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit}
.filters button,.filters .download{padding:7px 14px;border-radius:7px;font-size:13px;font-weight:700;border:none;cursor:pointer;text-decoration:none;font-family:inherit}
.filters button{background:#03C75A;color:#fff}
.filters .download{background:#fff;border:1.5px solid #ddd;color:#444}
.bulk-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding:10px 14px;background:#fff;border:1.5px solid #f0f0f0;border-radius:10px}
.bulk-bar select{padding:6px 10px;border:1.5px solid #e0e0e0;border-radius:6px;font-size:13px;font-family:inherit}
.bulk-bar button{padding:7px 14px;border-radius:6px;background:#0a1628;color:#fff;border:none;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}
.muted{font-size:12px;color:#aaa}
.site-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:20px}
.site-card{background:#fff;border:1.5px solid #f0f0f0;border-radius:12px;padding:16px}
.site-card .k{font-size:11px;color:#999;margin-bottom:4px}
.site-card .v{font-size:20px;font-weight:900;color:#111}
.site-card .site-card-header{display:flex;align-items:center;gap:7px;margin-bottom:12px}
.site-card .site-dot{width:8px;height:8px;border-radius:50%}
.site-card .site-name{font-size:12px;font-weight:800;color:#333}
.site-card .site-metric{margin-bottom:8px}
.site-card .site-metric-label{font-size:10px;color:#aaa;margin-bottom:3px}
.site-card .site-metric-val{font-size:16px;font-weight:900;color:#111}
.bar{height:5px;background:#f1f5f9;border-radius:999px;overflow:hidden;margin-top:4px}
.bar-fill,.bar i{display:block;height:100%;border-radius:999px;background:#03C75A}
.panel-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:20px}
.mini-chart{display:flex;flex-direction:column;gap:10px}
.mini-item{display:grid;grid-template-columns:72px 1fr 40px;align-items:center;gap:10px}
.mini-name{font-size:12px;color:#555;font-weight:700}
.mini-bar{height:7px;background:#f1f5f9;border-radius:999px;overflow:hidden}
.mini-bar-fill{display:block;height:100%;border-radius:999px;background:#3b82f6}
.mini-pct{font-size:12px;color:#888;text-align:right;font-weight:600}
.applicant{font-weight:700;font-size:13px}
.truncate{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.status{padding:3px 8px;border-radius:4px;font-size:11px;font-weight:700;background:#eef2ff;color:#3730a3}
.sform{display:flex;gap:6px;align-items:center}
.sform select{padding:4px 7px;border:1.5px solid #e0e0e0;border-radius:5px;font-size:12px;font-family:inherit}
.sform button{padding:4px 10px;border-radius:5px;background:#03C75A;color:#fff;border:none;font-size:12px;font-weight:700;cursor:pointer}
.btn-detail{padding:4px 10px;border-radius:5px;background:#f5f5f5;border:1px solid #e0e0e0;font-size:12px;cursor:pointer;font-family:inherit}
.btn-outline{background:#fff;border:1.5px solid #ddd;color:#444}.btn-outline:hover{border-color:#03C75A;color:#03C75A}
.actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.site-chip{display:inline-block;padding:2px 7px;border-radius:4px;font-size:11px;font-weight:700;background:#f0f0f0;color:#555;margin:2px}
.card{background:#fff;border:1.5px solid #f0f0f0;border-radius:12px;padding:22px 24px;margin-bottom:16px}
.meta{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:#666;margin-bottom:8px}
.section{margin-top:16px}
.section h3{font-size:13px;font-weight:700;color:#888;margin-bottom:6px}
.wrap{display:grid;grid-template-columns:1fr 300px;gap:16px;align-items:start}
.fg{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.fg label{font-size:12px;font-weight:700;color:#555}
.fg input,.fg select,.fg textarea{padding:9px 12px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit}
.fg textarea{min-height:80px;resize:vertical}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.btns{display:flex;gap:8px;margin-top:16px}
.err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px}
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:500;align-items:center;justify-content:center}
.modal.open{display:flex}
.modal-card{background:#fff;border-radius:14px;padding:24px;width:90%;max-width:560px;max-height:90vh;overflow-y:auto}
.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.modal-title{font-size:16px;font-weight:800;color:#111}
.close-btn{padding:5px 12px;border-radius:6px;border:1.5px solid #ddd;background:#fff;font-size:13px;cursor:pointer;font-family:inherit}
.detail-grid{display:grid;grid-template-columns:120px 1fr;gap:6px 12px;font-size:13px;margin-bottom:14px}
.detail-k{color:#888;font-weight:600;padding:4px 0}
.detail-v{color:#111;padding:4px 0;border-bottom:1px solid #f5f5f5}
.message-box{background:#f8fafc;border-radius:8px;padding:12px 14px;font-size:13px;margin-bottom:14px}
.memo-area{display:flex;flex-direction:column;gap:8px}
.memo-area textarea{padding:8px 10px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;min-height:70px;font-family:inherit}
.memo-area button{padding:7px 16px;background:#0a1628;color:#fff;border:none;border-radius:7px;font-size:13px;font-weight:700;cursor:pointer;align-self:flex-end}
.form-grid{display:flex;flex-direction:column;gap:10px}
.form-row{display:flex;flex-direction:column;gap:4px}
.form-row.full{grid-column:1/-1}
.form-row label{font-size:12px;font-weight:700;color:#555}
.form-row input,.form-row select,.form-row textarea{padding:8px 12px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit}
.form-row textarea{min-height:80px;resize:vertical}
.site-checks{display:flex;gap:14px;flex-wrap:wrap}
.site-checks label{display:flex;align-items:center;gap:5px;font-size:13px;cursor:pointer}
.submit-wrap{margin-top:14px;text-align:right}
.submit-wrap button{padding:10px 24px;background:#03C75A;color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:800;cursor:pointer;font-family:inherit}
.template-create-form{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.template-create-form input,.template-create-form select{padding:5px 8px;border:1.5px solid #e0e0e0;border-radius:6px;font-size:12px;font-family:inherit}
.template-create-form button{padding:5px 10px;background:#03C75A;color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:700;cursor:pointer}
.periods{display:flex;gap:6px}
.periods a{padding:6px 14px;border-radius:20px;font-size:12px;font-weight:700;text-decoration:none;border:1.5px solid #e0e0e0;color:#666}
.periods a.active{background:#0a1628;color:#fff;border-color:#0a1628}
.site-visual{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.site-donut-wrap,.site-stack-wrap{background:#fff;border:1.5px solid #f0f0f0;border-radius:12px;padding:18px}
.site-donut-title,.site-stack-title{font-size:13px;font-weight:700;color:#555;margin-bottom:12px}
.site-donut{width:160px;height:160px;border-radius:50%;margin:0 auto 16px;position:relative;display:flex;align-items:center;justify-content:center}
.site-donut-center{width:100px;height:100px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.site-donut-center .k{font-size:10px;color:#aaa}
.site-donut-center .v{font-size:18px;font-weight:900;color:#111}
.site-donut-center .s{font-size:9px;color:#ccc}
.site-legend{display:flex;flex-direction:column;gap:6px}
.site-legend a{display:flex;justify-content:space-between;align-items:center;font-size:12px;text-decoration:none;color:#333;padding:4px 0;border-bottom:1px solid #f5f5f5}
.site-legend .left{display:flex;align-items:center;gap:7px}
.site-legend .dot{width:8px;height:8px;border-radius:50%;display:inline-block}
.site-stack{display:flex;height:36px;border-radius:8px;overflow:hidden;margin-bottom:8px}
.site-stack a{display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;text-decoration:none;transition:opacity .15s}
.site-stack a:hover{opacity:.8}
.stack-help{font-size:11px;color:#aaa}
.chart-hero{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.hero-card{background:#0a1628;border-radius:12px;padding:20px;color:#fff}
.hero-card.alt{background:#0f766e}
.hero-card .k{font-size:11px;color:rgba(255,255,255,.5);margin-bottom:6px}
.hero-card .v{font-size:28px;font-weight:900;margin-bottom:4px}
.hero-card .s{font-size:11px;color:rgba(255,255,255,.4)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.trend{display:flex;flex-direction:column;gap:4px;max-height:320px;overflow-y:auto}
.trend-row{display:grid;grid-template-columns:44px 1fr 1fr 48px;gap:8px;align-items:center;text-decoration:none;padding:4px 0;border-bottom:1px solid #f5f5f5}
.trend-row .d{font-size:11px;color:#888;font-weight:600}
.trend-row .bar{height:8px;background:#f1f5f9;border-radius:999px;overflow:hidden}
.trend-row .bar.apps i{display:block;height:100%;background:#3b82f6;border-radius:999px}
.trend-row .bar.selected i{display:block;height:100%;background:#03C75A;border-radius:999px}
.trend-row .n{font-size:11px;color:#888;text-align:right}
.stack{display:flex;flex-direction:column;gap:14px}
.ch{font-size:14px;font-weight:800;color:#111;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #f0f0f0}
.body{padding:0}
.biz-item{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid #f0f0f0}
.biz-item:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.biz-item h3{font-size:15px;font-weight:800;color:#111;margin:0 0 12px}
.biz-item .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.biz-item .row{display:flex;flex-direction:column;gap:4px}
.biz-item .row.full{grid-column:1/-1}
.biz-item .row label{font-size:12px;font-weight:700;color:#555}
.biz-item .row input,.biz-item .row select{padding:8px 12px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit}
.biz-item .actions{margin-top:12px}
.biz-item .actions button{padding:8px 18px;background:#03C75A;color:#fff;border:none;border-radius:7px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}
@media(max-width:980px){.site-visual,.chart-hero,.grid,.panel-grid,.wrap{grid-template-columns:1fr}.site-grid{grid-template-columns:repeat(2,1fr)}}

/* ── campaign_new 전용 */
.form-section{font-size:13px;font-weight:800;color:#555;padding:10px 0 6px;border-bottom:1px solid #f0f0f0;margin:16px 0 12px}
.form-group{margin-bottom:14px}
.form-label{display:block;font-size:12px;font-weight:700;color:#555;margin-bottom:5px}
.form-label .required{color:#ef4444}
.form-input{width:100%;padding:9px 12px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit;transition:border-color .15s}
.form-input:focus{outline:none;border-color:#03C75A}
.form-select{width:100%;padding:9px 12px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit}
.form-textarea{width:100%;padding:9px 12px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit;min-height:100px;resize:vertical}
.form-hint{font-size:11px;color:#aaa;margin-top:5px}
.alert{padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:14px}
.alert-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}

/* ── settings 전용 */
.stack .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.stack .form-grid .row{display:flex;flex-direction:column;gap:4px}
.stack .form-grid .row.full{grid-column:1/-1}
.stack .form-grid .row label{font-size:12px;font-weight:700;color:#555}
.stack .form-grid .row input,
.stack .form-grid .row select{padding:9px 12px;border:1.5px solid #e0e0e0;border-radius:7px;font-size:13px;font-family:inherit;width:100%}
.stack .actions{margin-top:12px}
.stack .actions button{padding:8px 18px;background:#03C75A;color:#fff;border:none;border-radius:7px;font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}

/* ── ph 패널헤더 */
.ph{padding:12px 18px;border-bottom:1px solid #f5f5f5;font-size:14px;font-weight:800;color:#111;display:flex;justify-content:space-between;align-items:center;background:#fff}

/* reports kpi 3컬럼 */
.kpis:has(.kpi:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
