.data-status,.metric-help,.comparison-panel,.analysis-note{padding:14px 18px;margin:16px 0;border:1px solid var(--border-glass,#64748b);border-radius:12px;color:var(--text-primary);background:var(--bg-card,transparent);line-height:1.65}
.metric-help summary{cursor:pointer;font-weight:700}.metric-help p{margin-top:12px}.view-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}
.comparison-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:12px 0}.comparison-grid strong{display:block;font-size:1.5rem}
.store-detail-btn{font:inherit;color:var(--primary-light,#818cf8);background:none;border:none;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:4px}
.chart-card,.charts-grid-main>*,.charts-grid-sub>*,.chart-container-box,.highlight-card{min-width:0}.chart-container-box canvas{max-width:100%}
button:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #06b6d4;outline-offset:4px}button:disabled{opacity:.45;cursor:wait}
#storeDialog{max-width:900px;width:calc(100% - 32px);max-height:90vh;overflow:auto;padding:24px;border-radius:18px;border:1px solid #64748b;background:#111827;color:#f9fafb}
[data-theme="light"] #storeDialog{background:#fff;color:#0f172a}#storeDialog::backdrop{background:rgba(0,0,0,.65)}#storeDialog form{display:flex;justify-content:flex-end}#storeDialog h3{margin:20px 0 10px}.detail-chart{height:260px;margin-top:12px}
html:not([data-load-state="ready"]) .kpi-grid,html:not([data-load-state="ready"]) #targetGauge,html:not([data-load-state="ready"]) main,html:not([data-load-state="ready"]) #comparisonPanel{visibility:hidden}
[data-load-state="error"] .data-status{border-color:#ef4444}#retryDataBtn{padding:8px 14px;cursor:pointer}#panel-ranking>.chart-card{margin-bottom:24px}
@media(max-width:600px){.comparison-grid{grid-template-columns:repeat(2,1fr)}.view-actions{gap:8px}.data-status,.metric-help,.comparison-panel{padding:12px}.card-title-bar{flex-wrap:wrap}.card-heading{min-width:0}.tab-group{flex-wrap:wrap}.filter-pills{flex-wrap:wrap}#storeDialog{padding:14px}}
@media print{.view-actions,.metric-help,.data-status,#storeDialog{display:none!important}.comparison-panel{color:#111;background:#fff}.comparison-grid{grid-template-columns:repeat(4,1fr)}.store-detail-btn{color:#111;text-decoration:none}.analysis-note{color:#111}#panel-ranking>.chart-card{break-inside:auto}.custom-table tr{break-inside:avoid}}
@media print{
  .dashboard-container{zoom:.85}.analysis-note{color:var(--text-main)!important}.charts-grid-sub .custom-table{table-layout:fixed;width:100%}.charts-grid-sub .custom-table td{overflow-wrap:anywhere}.charts-grid-sub .chart-card{overflow:hidden}
  .dashboard-header{display:none!important}.print-meta{margin-bottom:6px!important}.print-title{font-size:16px!important}
  .target-gauge-card{padding:10px!important;margin:8px 0!important}.gauge-head{margin-bottom:6px!important}.gauge-pct{font-size:22px!important}.gauge-track{height:8px!important}.gauge-scale{margin-top:5px!important;font-size:10px!important}
  .kpi-grid{grid-template-columns:repeat(5,1fr)!important;gap:6px!important;margin-bottom:10px!important}.kpi-card{padding:9px!important}.kpi-value{font-size:18px!important;margin:6px 0!important}.kpi-title,.kpi-footer{font-size:8px!important}.kpi-icon{display:none!important}.kpi-footer{flex-wrap:wrap!important;gap:3px!important}
  .comparison-panel{padding:6px!important;margin:6px 0!important;font-size:9px!important}.comparison-grid{margin:4px 0!important}.comparison-grid strong{font-size:12px!important}
  .charts-grid-main,.charts-grid-sub{grid-template-columns:1fr 1fr!important;gap:10px!important;margin-bottom:10px!important}.chart-card{padding:10px!important}.chart-container-box,body.is-printing .chart-container-box{height:150px!important}.card-title-bar{margin-bottom:4px!important}.card-heading h3{font-size:12px!important}.card-heading p,.channel-stat-item .sub{font-size:8px!important}.channel-stat-item .val{font-size:14px!important}.channel-legend-stats{margin-top:4px!important;padding-top:4px!important}
  .rfm-summary-grid{grid-template-columns:repeat(4,1fr)!important;gap:6px!important;margin-bottom:8px!important}.rfm-card{padding:8px!important}.rfm-value{font-size:16px!important}.rfm-sub,.rfm-badge,.metric-tag{font-size:8px!important}.rfm-metrics-row{flex-wrap:wrap!important}.analysis-note{font-size:9px!important;padding:5px!important;margin:5px 0!important}
  #panel-ranking{break-before:page}.highlight-cards-grid{grid-template-columns:1fr 1fr!important;gap:8px!important;margin:8px 0!important}.highlight-card{padding:9px!important}.highlight-prod-name{font-size:12px!important}.highlight-prod-meta,.highlight-badge-pill,.stat-lbl{font-size:8px!important}.stat-val{font-size:13px!important}.highlight-card-body{gap:6px!important}
  .custom-table th,.custom-table td{padding:5px!important;font-size:8px!important}.custom-table .progress-track{height:3px!important;margin-top:2px!important}.rank-badge{width:18px!important;height:18px!important;font-size:9px!important}.badge-highlight-item{font-size:7px!important;padding:2px!important}.bestseller-section{margin-top:6px!important}.chart-card h3{font-size:12px!important}
  #brandTableBody tr:nth-child(n+6){display:none!important}#brandTableBody::after{content:'인쇄에는 상위 5개 브랜드 표시 · 전체 순위는 CSV 제공';display:table-row;font-size:8px}.dashboard-footer{margin-top:8px!important;padding-top:6px!important;font-size:8px!important}
}
