/* ============================================================
   Aive — app.css
   인증 이후 App 영역 공통 스타일
   · KPI Card · Chart Card · Data Table · Score Pill
   · Filter Bar · Alert Card · Report Score · Channel Bar
   ============================================================ */

/* ============================================================
   KPI Card
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.kpi-card {
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.kpi-card:hover { border-color: var(--text-sub); }
.kpi-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.kpi-value .unit {
  font-size: 14px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-weight: 400;
}
.kpi-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kpi-delta.up { color: var(--ok); }
.kpi-delta.down { color: var(--warn); }
.kpi-delta.flat { color: var(--text-mute); }

/* ============================================================
   Chart Card
   ============================================================ */
.chart-card {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.chart-header-main h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.chart-header-main p {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
}
.chart-legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--text-sub);
  flex-wrap: wrap;
}
.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.chart-legend-item .swatch {
  width: 10px; height: 10px;
  border-radius: 2px;
}
.chart-range-toggle {
  display: inline-flex;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.chart-range-toggle button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: 5px;
  letter-spacing: 0.08em;
}
.chart-range-toggle button.active {
  background: var(--bg-card-2);
  color: var(--accent);
}

/* ============================================================
   Data Table
   ============================================================ */
table > caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table thead {
  background: var(--bg-elev);
}
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  white-space: nowrap;
}
.data-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--text);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-card-2); }
.data-table .col-checkbox { width: 40px; }
.data-table .col-numeric {
  font-family: var(--font-mono);
  text-align: right;
}
.data-table .col-actions { width: 80px; text-align: right; }
.data-table .muted { color: var(--text-sub); font-size: 12.5px; }

/* ============================================================
   Score Pill (AI 노출 점수 / 상태 pill)
   ============================================================ */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.score-pill.high {
  background: var(--accent-soft);
  color: var(--accent);
}
.score-pill.mid {
  background: rgba(255,107,61,0.12);
  color: var(--warn);
}
.score-pill.low {
  background: rgba(108,108,116,0.15);
  color: var(--text-sub);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-pill.done { background: var(--accent-soft); color: var(--accent); }
.status-pill.running { background: rgba(110,231,160,0.12); color: var(--ok); }
.status-pill.pending { background: rgba(160,160,168,0.1); color: var(--text-mute); }
.status-pill.error { background: rgba(255,107,61,0.12); color: var(--warn); }
.status-pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   Product Row (thumb + name)
   ============================================================ */
.product-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-thumb {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 11px;
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.product-name {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2px;
}
.product-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-size: 13px;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.filter-chip:hover {
  border-color: var(--text-sub);
  color: var(--text);
}
.filter-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.filter-chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}
.filter-chip.active .count {
  background: rgba(212,255,58,0.12);
}
.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

/* ============================================================
   Bulk Action Bar
   ============================================================ */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
  margin-bottom: 16px;
  font-size: 13px;
}
.bulk-bar .count-info {
  color: var(--accent);
  font-weight: 500;
}
.bulk-bar .actions {
  display: flex;
  gap: 8px;
}
.bulk-bar .actions button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s;
}
.bulk-bar .actions button:hover { background: rgba(212,255,58,0.08); }
.bulk-bar .actions button.danger {
  border-color: var(--warn);
  color: var(--warn);
}
.bulk-bar .actions button.danger:hover { background: rgba(255,107,61,0.08); }

/* ============================================================
   Alert Card
   ============================================================ */
.alert-card {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-mute);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.alert-card:hover { border-color: var(--text-sub); }
.alert-card.warn { border-left-color: var(--warn); }
.alert-card.info { border-left-color: var(--accent); }
.alert-card.ok { border-left-color: var(--ok); }
.alert-title {
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.alert-title .time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  font-weight: 400;
}
.alert-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.55;
}
.alert-action {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.alert-action:hover { text-decoration: underline; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-sub);
}
.pagination .info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
}
.pagination-controls {
  display: flex;
  gap: 4px;
}
.pagination-controls button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text-sub);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.15s;
}
.pagination-controls button:hover {
  border-color: var(--text-sub);
  color: var(--text);
}
.pagination-controls button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
  font-weight: 500;
}
.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Two-column content
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.section-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.section-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-block-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-block-header a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* ============================================================
   Report Specific
   ============================================================ */
.report-hero {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212,255,58,0.03) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}
.report-score {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.report-score .total {
  font-size: 24px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-weight: 400;
}
.report-grade {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
}
.report-summary h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.report-summary p {
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.report-meta {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.report-meta span::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

/* Channel exposure bars */
.channel-list { margin-top: 8px; }
.channel-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.channel-item:last-child { border-bottom: none; }
.channel-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.channel-name {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.channel-name .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.channel-metric {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.channel-metric .pct-unit {
  font-size: 12px;
  color: var(--text-sub);
  margin-left: 2px;
  font-family: var(--font-mono);
}
.channel-bar {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.channel-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.channel-caption {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.channel-caption .delta.up { color: var(--ok); }
.channel-caption .delta.down { color: var(--warn); }

/* Recommendation cards */
.reco-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}
.reco-impact {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}
.reco-impact.high { background: rgba(255,107,61,0.15); color: var(--warn); }
.reco-impact.mid { background: rgba(160,160,168,0.12); color: var(--text-sub); }
.reco-impact.low { background: rgba(160,160,168,0.08); color: var(--text-mute); }
.reco-content h4 {
  font-size: 14.5px;
  font-weight: 500;
  margin: 0 0 4px;
}
.reco-content p {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .report-hero { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .chart-card, .section-block { padding: 20px; }
  .report-score { font-size: 72px; }
}

/* ============================================================
   v1.1 Additions — Dual Scores, Detail Page, Badges, Tooltips
   ============================================================ */

/* Dual Score Display */
.score-dual {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.3;
}
.score-dual .delta {
  font-size: 11px;
  color: var(--accent);
}
.score-dual .orig {
  color: var(--text-mute);
  text-decoration: line-through;
  font-size: 11px;
}
.score-dual .now {
  color: var(--text);
  font-weight: 600;
}
.score-dual .state {
  color: var(--text-sub);
  font-size: 11px;
}
.score-dual .trust {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.02em;
}

/* Tooltip (hover channel detail) */
.tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: help;
  border-bottom: 1px dashed var(--line);
}
.tip .tip-body {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  padding: 12px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
  text-align: left;
  white-space: normal;
}
.tip:hover .tip-body { opacity: 1; }
.tip .tip-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}
.tip .tip-row .ok { color: var(--accent); }
.tip .tip-row .ng { color: var(--warn); }

/* Action Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  color: var(--text-sub);
}
.badge.auto { color: var(--accent); border-color: var(--accent-soft); background: rgba(212,255,58,0.04); }
.badge.manual { color: var(--ok); border-color: rgba(110,231,160,0.2); background: rgba(110,231,160,0.04); }
.badge.csm { color: var(--warn); border-color: rgba(255,107,61,0.2); background: rgba(255,107,61,0.04); }
.badge.trust { color: var(--accent); border-color: var(--accent-soft); }
.badge.warn-inline { color: var(--warn); border-color: rgba(255,107,61,0.25); background: rgba(255,107,61,0.06); }

/* Product Detail Page */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 1024px) {
  .pd-grid { grid-template-columns: 1fr; }
}

.pd-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: start;
}
.pd-hero-img {
  width: 160px;
  height: 160px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 14px;
}
.pd-hero-info h2 {
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.pd-hero-info .sku {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.pd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 12px;
}
.pd-hero-meta > div { min-width: 0; }
.pd-hero-meta .label {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pd-hero-meta .value {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

/* Score Block */
.pd-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pd-score-item { text-align: left; }
.pd-score-item .num {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pd-score-item .num.orig { color: var(--text-mute); text-decoration: line-through; }
.pd-score-item .num.now { color: var(--text); }
.pd-score-item .num.delta { color: var(--accent); }
.pd-score-item .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
}
.pd-score-state {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-sub);
}
.pd-score-state strong { color: var(--text); }

/* 5-dim Score Bars */
.dim-bar {
  display: grid;
  grid-template-columns: 140px 1fr 60px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
}
.dim-bar .name { color: var(--text-sub); }
.dim-bar .track {
  height: 6px;
  background: var(--bg-card-2);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.dim-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
}
.dim-bar .fill.mid { background: linear-gradient(90deg, var(--warn), var(--accent)); }
.dim-bar .fill.low { background: var(--warn); }
.dim-bar .val {
  font-family: var(--font-mono);
  color: var(--text);
  text-align: right;
  font-size: 12px;
}

/* Diagnosis Cards */
.diag-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.diag-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
}
.diag-card .rank {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-mute);
  line-height: 1;
  width: 32px;
  text-align: center;
}
.diag-card .body .title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}
.diag-card .body .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 6px;
}
.diag-card .impact {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
}

/* Channel Cards */
.chan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chan-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.chan-card .name { font-weight: 500; font-size: 14px; }
.chan-card .weight {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-left: 8px;
}
.chan-card .state {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.chan-card .state.active { background: var(--accent-soft); color: var(--accent); }
.chan-card .state.pending { background: rgba(255,107,61,0.1); color: var(--warn); }
.chan-card .state.review { background: rgba(160,160,168,0.1); color: var(--text-mute); }
.chan-card .eta {
  font-size: 11px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* Exposure History Timeline */
.history-list {
  display: flex;
  flex-direction: column;
}
.hist-row {
  display: grid;
  grid-template-columns: 140px 120px 1fr auto auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  font-size: 13px;
}
.hist-row:last-child { border-bottom: none; }
.hist-row .when {
  font-family: var(--font-mono);
  color: var(--text-mute);
  font-size: 11px;
}
.hist-row .chan { color: var(--text-sub); }
.hist-row .q {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-row .pos {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.hist-row .shot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
}

/* Before/After diff */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.diff-col {
  padding: 20px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.diff-col h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.diff-col .t {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
  white-space: pre-wrap;
}
.diff-col.now { border-color: var(--accent-soft); }
.diff-col.now h4 { color: var(--accent); }
.diff-col.now .t { color: var(--text); }

/* Before/After 4속성 탭 (GMC 2026 구조화 속성) */
.diff-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--bg-card-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.diff-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-align: center;
}
.diff-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.diff-tab.active {
  background: var(--accent);
  color: #0a0a0b;
  font-weight: 500;
}
.diff-tab .attr-key {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-sans);
}
.diff-tab.active .attr-key { opacity: 0.85; }

.diff-panel { display: none; }
.diff-panel.active { display: block; }

.diff-col .t.list-style {
  list-style: none;
  padding: 0;
  margin: 0;
}
.diff-col .t.list-style li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 12.5px;
}
.diff-col .t.list-style li:last-child { border-bottom: none; }
.diff-col .t.list-style .k {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
}
.diff-col .t.list-style .v { color: var(--text-sub); }
.diff-col.now .t.list-style .v { color: var(--text); }

.diff-col .t.highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.diff-col .t.highlights li {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  padding-left: 32px;
}
.diff-col .t.highlights li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-weight: 600;
}
.diff-col.now .t.highlights li {
  border-color: var(--accent-soft);
  background: rgba(212,255,58,0.03);
}
.diff-col.now .t.highlights li::before {
  color: var(--accent);
}

.diff-attr-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(212,255,58,0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
}
.diff-attr-note strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
}

/* Event Timeline */
.event-timeline {
  position: relative;
  padding-left: 20px;
}
.event-timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.event-item {
  position: relative;
  padding: 8px 0 8px 0;
  font-size: 13px;
}
.event-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--accent);
}
.event-item .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.event-item .what { margin-top: 2px; }

/* Sidebar widget for product-detail */
.pd-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pd-actions {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pd-actions h4 {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pd-actions button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  cursor: pointer;
  margin-bottom: 6px;
  transition: all 0.15s;
}
.pd-actions button:hover {
  border-color: var(--text-sub);
  background: var(--bg-card-2);
}
.pd-actions button.danger { color: var(--warn); }
.pd-actions button.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

/* Detail Section Wrapper */
.pd-section {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pd-section h3 {
  margin: 0 0 16px;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.pd-section h3 .note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Action Menu (7 items) */
.actmenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.actmenu button {
  text-align: left;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--font-sans);
  transition: background 0.1s;
}
.actmenu button:hover { background: var(--bg-card-2); color: var(--text); }
.actmenu button.danger:hover { background: rgba(255,107,61,0.08); color: var(--warn); }

/* Notification Matrix */
.noti-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.noti-matrix {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.noti-matrix th,
.noti-matrix td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.noti-matrix tr:last-child td {
  border-bottom: none;
}
.noti-matrix tbody tr {
  transition: background 0.12s;
}
.noti-matrix tbody tr:hover {
  background: var(--bg-card-2);
}
.noti-matrix th:first-child,
.noti-matrix td:first-child {
  text-align: left;
  padding-left: 20px;
  color: var(--text);
  font-weight: 500;
  white-space: normal;
  min-width: 180px;
}
.noti-matrix td:first-child {
  font-size: 13.5px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.noti-matrix th:last-child,
.noti-matrix td:last-child {
  padding-right: 20px;
}
.noti-matrix thead th {
  background: var(--bg-card-2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}
.noti-matrix thead th:first-child {
  padding-left: 20px;
}
/* 중요도 뱃지 컬럼 */
.noti-matrix th:nth-child(2),
.noti-matrix td:nth-child(2) {
  width: 110px;
}
/* 채널 체크박스 컬럼 */
.noti-matrix th:nth-child(n+3),
.noti-matrix td:nth-child(n+3) {
  width: 70px;
}
.noti-matrix input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
}
/* 중요도 뱃지 스타일 (Critical/High/Medium) */
.noti-matrix .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-elev);
  color: var(--text-mute);
  border: 1px solid var(--line-soft);
}
.noti-matrix .badge.critical {
  background: rgba(255,77,77,0.1);
  color: #ff5555;
  border-color: rgba(255,77,77,0.25);
}
.noti-matrix .badge.high {
  background: rgba(255,107,61,0.08);
  color: var(--warn);
  border-color: rgba(255,107,61,0.2);
}
.noti-matrix .badge.medium {
  background: var(--bg-elev);
  color: var(--text-sub);
  border-color: var(--line);
}

@media (max-width: 900px) {
  .noti-matrix thead th {
    font-size: 9.5px;
    padding: 10px 6px;
    letter-spacing: 0.05em;
  }
  .noti-matrix th:nth-child(n+3),
  .noti-matrix td:nth-child(n+3) {
    width: 60px;
    padding: 12px 6px;
  }
}

/* Presets */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.preset {
  padding: 14px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
}
.preset:hover { border-color: var(--text-sub); }
.preset.active { border-color: var(--accent); background: rgba(212,255,58,0.04); }
.preset .t { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.preset .d { font-size: 11px; color: var(--text-mute); font-family: var(--font-mono); }
@media (max-width: 768px) { .preset-grid { grid-template-columns: repeat(2, 1fr); } }

/* Settings Tab */
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.tabs button {
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-sub);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--font-sans);
  transition: color 0.15s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Legal Page */
.legal-nav {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  position: sticky;
  top: 72px;
  background: var(--bg);
  z-index: 5;
}
.legal-nav a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: all 0.15s;
}
.legal-nav a:hover { color: var(--text); border-color: var(--text-sub); }
.legal-section {
  margin-bottom: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}
.legal-section:last-child { border-bottom: none; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.legal-section .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 32px;
}
.legal-section h3 {
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--text);
}
.legal-section h4 {
  font-size: 14px;
  margin: 20px 0 8px;
  color: var(--text);
}
.legal-section p,
.legal-section li {
  color: var(--text-sub);
  line-height: 1.8;
  font-size: 14px;
}
.legal-section ul, .legal-section ol { padding-left: 22px; }
.legal-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.legal-section th,
.legal-section td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-section th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}
.legal-section td { color: var(--text-sub); }

/* L4 Consent Box */
.consent-box {
  padding: 20px;
  background: var(--bg-card-2);
  border: 1px solid var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin: 20px 0;
}
.consent-box h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Distribution Mini-chart */
.mini-dist {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 80px;
  margin: 16px 0;
}
.mini-dist .col {
  flex: 1;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  text-align: center;
  padding-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  min-height: 24px;
}
.mini-dist .col .v {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  font-size: 11px;
  color: var(--text);
}
.mini-dist .col.h { background: rgba(212,255,58,0.12); border-color: var(--accent-soft); }
.mini-dist .col.m { background: rgba(255,107,61,0.08); border-color: rgba(255,107,61,0.2); }
.mini-dist .col.l { background: rgba(160,160,168,0.08); }

/* Source Banner (reviews) */
.src-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(212,255,58,0.04);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 20px;
}
.src-banner strong { color: var(--accent); }

/* Error Code List (onboarding) */
.err-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
}
.err-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.err-item .code {
  font-family: var(--font-mono);
  color: var(--warn);
  font-size: 12px;
}
.err-item .desc { color: var(--text-sub); }

/* Inline tip note */
.note-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-left: 8px;
}

/* Mobile hint */
.mobile-hint {
  display: none;
}
@media (max-width: 768px) {
  .mobile-hint {
    display: block;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: rgba(255,107,61,0.06);
    border: 1px solid rgba(255,107,61,0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--warn);
  }
}

/* Plan Cards v1.1 */
.plan-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 1024px) { .plan-grid-v2 { grid-template-columns: 1fr; } }
.plan-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(212,255,58,0.04), transparent 60%);
}
.plan-card .pn {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.plan-card .pt {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.plan-card .pp {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 16px 0 4px;
  letter-spacing: -0.03em;
}
.plan-card .pp .unit { font-size: 15px; color: var(--text-mute); font-family: var(--font-sans); }
.plan-card .pp-annual {
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-bottom: 20px;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 24px;
  font-size: 13px;
  color: var(--text-sub);
}
.plan-card ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.55;
}
.plan-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.plan-card ul li.killer::before { content: "★"; }
.plan-card ul li.killer { color: var(--accent); font-weight: 500; }

/* Billing Cycle Toggle */
.cycle-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  gap: 2px;
}
.cycle-toggle button {
  padding: 8px 20px;
  background: transparent;
  border: none;
  color: var(--text-sub);
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-sans);
}
.cycle-toggle button.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

/* Inline note for signup */
.form-note {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 6px;
  line-height: 1.5;
}
.radio-group {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.radio-group label {
  flex: 1;
  padding: 14px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
}
.radio-group label:hover { border-color: var(--text-sub); }
.radio-group input:checked + span { color: var(--accent); font-weight: 600; }
.radio-group input { accent-color: var(--accent); }

/* Channel Weight Display */
.channel-weight-list {
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: 8px 12px;
  font-size: 12px;
}
.channel-weight-list .cw-name { color: var(--text-sub); }
.channel-weight-list .cw-val {
  font-family: var(--font-mono);
  color: var(--text);
  text-align: right;
}

/* v1.1 · Products table "상세" 링크 */
.data-table .detail-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-sub);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  transition: all 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.data-table .detail-link:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
  background: rgba(212,255,58,0.06);
}
/* 행 전체 hover 피드백 */
.data-table tbody tr { transition: background 0.1s; }
.data-table tbody tr:has(.detail-link):hover .detail-link {
  color: var(--accent);
  border-color: var(--accent-soft);
}

/* v1.2 · Channel Badges */
.ch-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: 6px;
  vertical-align: middle;
}
.ch-badge.cafe24 {
  color: #ff6b3d;
  background: rgba(255,107,61,0.08);
  border: 1px solid rgba(255,107,61,0.2);
}
.ch-badge.smartstore {
  color: #6ee7a0;
  background: rgba(110,231,160,0.08);
  border: 1px solid rgba(110,231,160,0.2);
}
.ch-badge::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* v1.2 · Channel Filter (Header) */
.channel-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}
.channel-filter .cf-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.channel-filter select {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-sans);
  padding: 2px 20px 2px 4px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a8' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.channel-filter select:focus { outline: 1px solid var(--accent); }

/* Chromium(Chrome·Edge) 전용 보강 — color-scheme: dark가 OS 라이트 테마에서 무시되는 이슈 대응 */
/* Firefox는 tokens.css의 color-scheme: dark로, Chrome·Edge는 아래 option 직접 스타일로 다크 팝업 적용 */
.channel-filter select option {
  background-color: var(--bg-card);
  color: var(--text);
}

/* ============================================================
   KPI Card 보조 스타일 (dashboard.css 흡수)
   ============================================================ */

/* KPI 카드 내 링크 hover */
.kpi-card .kpi-value a {
  color: inherit;
  text-decoration: none;
}
.kpi-card .kpi-value a:hover { color: var(--accent); }

/* KPI 메타 정보 */
.kpi-card .kpi-meta {
  font-size: 12px;
  color: var(--text-mute);
}

/* KPI 상태 border 변형 */
.kpi-card.kpi-ok   { border-color: rgba(110,231,160,0.25); }
.kpi-card.kpi-warn { border-color: rgba(255,107,61,0.25); }
.kpi-card.kpi-ok   .kpi-value { color: var(--ok); }
.kpi-card.kpi-warn .kpi-value { color: var(--warn); }

/* ============================================================
   섹션 구분자
   ============================================================ */

/* 섹션 소제목 (페이지 내 구역 레이블) */
.section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 16px;
}

/* 섹션 사이 수평 구분선 */
.section-divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 32px 0;
}

/* ============================================================
   AI Performance Widget UI
   perf-card, pixel-banner, milestone-row, 상태 표시,
   report-kpi-*, conf-badge, table-pager, conf-legend
   ============================================================ */

/* ① perf-card — Dashboard KPI 카드 4종 */
.perf-card {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--transition);
}
.perf-card:hover { border-color: var(--text-sub); }
.perf-card.apc-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.apc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.apc-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.apc-unit {
  font-size: 13px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  font-weight: 400;
}
.apc-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.4;
}
.apc-revenue { color: var(--ok); }

/* ② pixel-banner — 픽셀 미설치/신호없음 경고 배너 */
.pixel-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.pixel-banner.pixel-not-installed {
  background: rgba(255,107,61,0.06);
  border: 1px solid rgba(255,107,61,0.2);
  color: var(--text-sub);
}
.pixel-banner.pixel-stale {
  background: rgba(255,107,61,0.04);
  border: 1px solid rgba(255,107,61,0.15);
  color: var(--text-sub);
}
.apb-icon {
  flex-shrink: 0;
  color: var(--warn);
  font-size: 16px;
}
.apb-text { flex: 1; line-height: 1.55; }
.apb-text strong { color: var(--warn); }
.apb-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--warn);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.apb-link:hover { text-decoration: underline; }

/* ③ milestone-row — 마일스톤 히스토리 바 */
.milestone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.amr-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}
.amr-item {
  font-size: 12.5px;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.amr-item + .amr-item::before {
  content: "·";
  color: var(--line);
  margin-right: 5px;
}
.amr-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}

/* ④ 상태 표시 — 로딩·오류·빈 상태 */
.perf-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 20px;
  font-size: 13px;
  color: var(--text-mute);
}
.perf-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: perf-spin 0.7s linear infinite;
}
@keyframes perf-spin { to { transform: rotate(360deg); } }
.perf-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,107,61,0.06);
  border: 1px solid rgba(255,107,61,0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--warn);
}
.perf-error button {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--warn);
  color: var(--warn);
  border-radius: var(--radius-pill);
  cursor: pointer;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: background var(--transition);
}
.perf-error button:hover { background: rgba(255,107,61,0.08); }
.perf-empty {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ⑤ report-kpi-* — Report 페이지 KPI 그리드 */
.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.report-kpi-card {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.report-kpi-card.apc-disabled {
  opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 900px) { .report-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .report-kpi-grid { grid-template-columns: 1fr; } }

/* ⑥ conf-badge — 매칭 신뢰도 배지 4단계 */
.conf-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.conf-badge.conf-high {
  background: var(--accent-soft);
  color: var(--accent);
}
.conf-badge.conf-mid {
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
}
.conf-badge.conf-low {
  background: rgba(160,160,168,0.12);
  color: var(--text-sub);
}
.conf-badge.conf-prob {
  background: rgba(160,160,168,0.08);
  color: var(--text-mute);
}

/* ⑦ table-pager — 상품 테이블 페이지네이션 */
.table-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
}

/* ⑧ conf-legend — 신뢰도 범례 */
.conf-legend {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-mute);
  line-height: 2;
}
.conf-legend strong {
  color: var(--text-sub);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ============================================================
   입점사 대시보드 전용 보조 스타일
   ============================================================ */
.app-bell-btn {
  position: relative;
}
.bell-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}
.dashboard-card {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.dashboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dashboard-card h2 {
  margin: 6px 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dashboard-lead {
  margin: 0;
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
}
.dashboard-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dashboard-score-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.2fr;
  gap: 24px;
  margin-bottom: 22px;
}
.dashboard-score-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-right: 24px;
  border-right: 1px solid var(--line);
}
.dashboard-score-num {
  font-family: var(--font-display);
  font-size: 58px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.dashboard-score-label {
  color: var(--text);
  font-weight: 600;
}
.dashboard-score-sub {
  margin-top: 4px;
  color: var(--text-mute);
  font-size: 12px;
}
.dashboard-score-dist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-dist-row {
  display: grid;
  grid-template-columns: 110px 1fr 42px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.score-dist-label {
  color: var(--text-sub);
}
.score-dist-bar,
.dashboard-progress {
  height: 8px;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.score-dist-bar .fill,
.dashboard-progress .fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.score-dist-bar .fill.mid {
  background: linear-gradient(90deg, var(--warn), var(--accent));
}
.score-dist-bar .fill.low {
  background: var(--warn);
}
.score-dist-val {
  color: var(--text);
  font-family: var(--font-mono);
  text-align: right;
}
.dashboard-channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-channel {
  padding: 12px;
  background: var(--bg-card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.dashboard-channel .channel-name {
  display: block;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 6px;
}
.dashboard-channel .channel-score {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.dashboard-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}
.dashboard-preview-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.dashboard-preview-row .muted {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
}
.bulk-delete-card {
  border-color: rgba(255,107,61,0.25);
}
.metric-mono,
.meta-mono-sm {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.metric-mono strong {
  color: var(--accent);
  font-size: 14px;
}
.aive-perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.dashboard-chart-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.dashboard-line-chart {
  width: 100%;
  height: auto;
  display: block;
}
.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line-chatgpt,
.swatch-chatgpt {
  stroke: var(--accent);
  background: var(--accent);
}
.chart-line-google,
.swatch-google {
  stroke: var(--ok);
  background: var(--ok);
}
.chart-line-perplexity,
.swatch-perplexity {
  stroke: #4da3ff;
  background: #4da3ff;
}
.chart-line-gemini,
.swatch-gemini {
  stroke: #c68fff;
  background: #c68fff;
}
.w-pct-9 { width: 9%; }
.w-pct-15 { width: 15%; }
.w-pct-20 { width: 20%; }
.w-pct-34 { width: 34%; }
.w-pct-38 { width: 38%; }
.w-pct-41 { width: 41%; }
.w-pct-42 { width: 42%; }
.w-pct-46 { width: 46%; }
.w-pct-48 { width: 48%; }
.w-pct-50 { width: 50%; }
.w-pct-54 { width: 54%; }
.w-pct-58 { width: 58%; }
.w-pct-61 { width: 61%; }
.w-pct-67 { width: 67%; }
.w-pct-68 { width: 68%; }
.w-pct-72 { width: 72%; }
.w-pct-80 { width: 80%; }
.w-pct-82 { width: 82%; }
.w-pct-87 { width: 87%; }
.w-pct-100 { width: 100%; }

/* ============================================================
   입점사 상품 목록 전용 보조 스타일
   ============================================================ */
.app-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  pointer-events: none;
}
.table-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.filter-form-right {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.monitor-search-input {
  width: 260px;
}
.table-wrap-scroll {
  overflow-x: auto;
}
.col-w-70 {
  width: 70px;
}
.col-w-120 {
  width: 120px;
}
.col-w-150 {
  width: 150px;
}
.col-w-220 {
  width: 220px;
}
.col-w-260 {
  width: 260px;
}
.empty {
  padding: 36px;
  color: var(--text-mute);
  text-align: center;
}
.products-table .col-category,
.products-table .col-status,
.products-table .col-actions {
  width: 100px;
}
.products-table .col-focus {
  width: 84px;
  text-align: center;
}
.products-table .col-score {
  width: 160px;
}
.products-table .col-channel,
.products-table .col-date {
  width: 120px;
}
.pager-gap {
  background: transparent;
  border-color: transparent;
}
.plg-limit-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(8px);
}
.plg-limit-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 36px 36px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(212,255,58,0.25);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,255,58,0.05);
}
.plg-limit-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-mute);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  border-radius: 6px;
  text-decoration: none;
}
.plg-limit-close:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.plg-limit-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.plg-limit-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,176,59,0.12);
  border: 1px solid rgba(255,176,59,0.3);
  border-radius: 12px;
  color: #ffb03b;
  font-weight: 700;
}
.plg-limit-kicker {
  color: #ffb03b;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.plg-limit-panel h2 {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.plg-limit-usage {
  padding: 16px 18px;
  background: rgba(255,176,59,0.06);
  border: 1px solid rgba(255,176,59,0.18);
  border-radius: var(--radius-btn);
  margin-bottom: 22px;
}
.plg-limit-usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.plg-limit-usage-row span {
  color: var(--text-mute);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.plg-limit-usage-row strong {
  color: #ffb03b;
  font-size: 12px;
}
.plg-limit-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.plg-limit-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffb03b 0%, var(--warn) 100%);
  border-radius: var(--radius-pill);
}
.plg-limit-panel p {
  color: var(--text-sub);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.plg-limit-panel p strong {
  color: var(--text);
}
.plg-limit-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

/* ============================================================
   입점사 상품 상세 전용 보조 스타일
   ============================================================ */
.product-detail-back {
  margin-bottom: 6px;
}
.product-detail-back a {
  color: var(--text-mute);
  text-decoration: none;
}
.product-detail-back a:hover {
  color: var(--accent);
}
.pd-hero-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.pd-hero-info .ch-badge {
  font-size: 11px;
  margin-left: 10px;
  vertical-align: middle;
}
.pd-hero-badges {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.diag-desc {
  font-size: 12px;
  color: var(--text-sub);
}
.diagnosis-resolve {
  margin-top: 20px;
  padding: 16px;
  background: rgba(212,255,58,0.04);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-sub);
}
.diagnosis-resolve strong,
.diagnosis-resolve span {
  color: var(--accent);
}
.ai-ready-note {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(212,255,58,0.04);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.5;
}
.ai-ready-note strong {
  color: var(--accent);
  font-weight: 500;
}
.history-filter {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hist-row-skipped {
  background: repeating-linear-gradient(45deg,rgba(255,255,255,0.02),rgba(255,255,255,0.02) 4px,transparent 4px,transparent 8px);
  border-left: 2px dashed var(--text-mute);
  opacity: 0.75;
}
.hist-row-skipped .when,
.hist-row-skipped .chan,
.hist-row-skipped .q,
.hist-row-skipped .pos,
.hist-note {
  color: var(--text-mute);
}
.hist-row-skipped .q {
  font-style: italic;
}
.hist-note {
  font-size: 11px;
}
.section-link-row {
  margin-top: 16px;
  text-align: right;
}
.section-link-row a {
  font-size: 12px;
  color: var(--text-sub);
  font-family: var(--font-mono);
  text-decoration: none;
}
.section-link-row a:hover {
  color: var(--accent);
}
.diff-switch {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.diff-switch-section .diff-panel {
  display: none;
}
#diff-tab-title:checked ~ .diff-tabs .diff-label-title,
#diff-tab-description:checked ~ .diff-tabs .diff-label-description,
#diff-tab-highlight:checked ~ .diff-tabs .diff-label-highlight,
#diff-tab-detail:checked ~ .diff-tabs .diff-label-detail {
  background: rgba(212,255,58,0.06);
  border-color: var(--accent);
  color: var(--accent);
}
#diff-tab-title:checked ~ .diff-panel-title,
#diff-tab-description:checked ~ .diff-panel-description,
#diff-tab-highlight:checked ~ .diff-panel-highlight,
#diff-tab-detail:checked ~ .diff-panel-detail {
  display: block;
}
.related-products {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}
.related-product-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-soft);
}
.related-product-row:last-child {
  border-bottom: none;
}
.related-product-row a {
  color: var(--text);
  text-decoration: none;
}
.related-product-row a:hover {
  color: var(--accent);
}
.related-product-row .score-pill {
  padding: 0 8px;
  font-size: 10px;
}
.meta-list {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.8;
  font-family: var(--font-mono);
}

/* ============================================================
   입점사 AI 진단 리포트 전용 보조 스타일
   ============================================================ */
.report-eyebrow,
.report-inline-eyebrow {
  margin-bottom: 6px;
}
.report-inline-eyebrow {
  margin-bottom: 16px;
}
.report-actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.report-hero-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ok);
  letter-spacing: 0.08em;
}
.report-section {
  margin-bottom: 24px;
}
.report-section-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  margin-left: 8px;
  font-weight: 400;
}
.report-footnote {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  line-height: 1.7;
}
.report-measure-card {
  margin: 24px 0 32px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.report-measure-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.report-measure-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-measure-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0 0 16px;
}
.report-measure-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.report-measure-progress strong {
  color: var(--accent);
  font-weight: 600;
}
.report-channel-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
.report-channel-mini {
  display: grid;
  grid-template-columns: 80px 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.report-channel-mini span {
  color: var(--text);
}
.report-channel-mini strong {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  text-align: right;
}
.report-channel-mini.pending strong {
  color: var(--text-mute);
}
.report-channel-mini i {
  height: 4px;
  background: var(--bg-card-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.report-channel-mini b {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
}
.mini-h-75 { height: 75%; }
.mini-h-62 { height: 62%; }
.mini-h-28 { height: 28%; }
.mini-h-16 { height: 16%; }
.mini-h-8 { height: 8%; }
.dot-ok,
.fill-ok {
  background: var(--ok);
}
.dot-blue,
.fill-blue {
  background: #4da3ff;
}
.dot-purple,
.fill-purple {
  background: #c68fff;
}
.dot-orange,
.fill-orange {
  background: #ff9a4d;
}
.text-blue {
  color: #4da3ff;
}
.text-purple {
  color: #c68fff;
}
.text-orange {
  color: #ff9a4d;
}
.report-flat-head {
  padding: 0 4px;
}
.reco-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reco-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.badge-accent {
  color: var(--accent);
}
.report-note-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(160,160,168,0.04);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.7;
}
.aive-perf-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.aive-perf-report-head p {
  margin: 4px 0 0;
  color: var(--text-sub);
  font-size: 13px;
}
.aive-engine-section {
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.engine-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.engine-section-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}
.engine-section-head p {
  margin: 4px 0 0;
  color: var(--text-sub);
  font-size: 13px;
}
.engine-section-head > span {
  padding: 4px 10px;
  background: rgba(37,99,235,0.15);
  color: #60a5fa;
  border-radius: var(--radius-pill);
  font-size: 11px;
  letter-spacing: 0.5px;
}
.engine-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.engine-summary-grid > div {
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.engine-summary-grid span {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.engine-summary-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.engine-summary-grid .engine-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
}
.engine-chart-card,
.engine-keywords {
  margin-bottom: 20px;
}
.engine-card-title {
  font-size: 12.5px;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.engine-bars {
  min-height: 140px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}
.engine-bars span {
  flex: 1;
  min-width: 12px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.bar-h-28 { height: 28px; }
.bar-h-32 { height: 32px; }
.bar-h-36 { height: 36px; }
.bar-h-38 { height: 38px; }
.bar-h-40 { height: 40px; }
.bar-h-44 { height: 44px; }
.bar-h-48 { height: 48px; }
.bar-h-52 { height: 52px; }
.bar-h-56 { height: 56px; }
.bar-h-58 { height: 58px; }
.bar-h-62 { height: 62px; }
.bar-h-68 { height: 68px; }
.bar-h-72 { height: 72px; }
.bar-h-82 { height: 82px; }
.engine-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-soft);
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.6;
}
.report-reference-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}
.report-reference-note strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
@media (max-width: 1000px) {
  .dashboard-score-grid,
  .dashboard-channel-grid,
  .aive-perf-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-score-main {
    padding-right: 0;
    border-right: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 720px) {
  .dashboard-card,
  .chart-card {
    padding: 22px 20px;
  }
  .dashboard-card-head,
  .dashboard-preview-row {
    grid-template-columns: 1fr;
  }
  .dashboard-card-head {
    flex-direction: column;
  }
}
