/* Data surfaces. Outcome, rarity, sample-size and chart palettes stay semantic. */
.activity-charts { margin: 0; gap: var(--notebook-section-gap); }
.activity-charts > section:not(.all-floor-panel),
.activity-share-grid > section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.activity-charts .activity-share-grid { gap: var(--notebook-chart-gap); }
.activity-charts h3 { display: flex; align-items: center; gap: 6px; color: #243b53; font-size: 14px; font-weight: 750; line-height: 1.5; margin: 0 0 8px; }
.activity-charts h3::before { content: ''; display: block; flex: 0 0 3px; width: 3px; min-width: 3px; max-width: 3px; height: 12px; border-radius: 2px; background: var(--chart-heading-color, #287f79); }
#daily-title, #hourly-title { --chart-heading-color: #4d81ba; }
#daily-players-title, #hourly-players-title, #party-size-share-title { --chart-heading-color: #218a7f; }
#daily-play-time-title, #hourly-play-time-title { --chart-heading-color: #bc7a25; }
#distribution-title, #ascension-title { --chart-heading-color: #855ab0; }
#outcome-share-title { --chart-heading-color: #2c8b52; }
#language-share-title { --chart-heading-color: #318ca6; }
#game-channel-share-title { --chart-heading-color: #6b79a8; }
.activity-chart-heading { margin-bottom: 0; }
.chart-grid { stroke: #eaf0f5; }
.chart-axis { fill: #5d7085; }
.activity-chart-pair .chart-axis { font-size: 14px; }
.activity-chart-pair .count-chart { --chart-color: #4d81ba; }
.chart-readout { color: #5d7188; }
.chart-expand-button { top: 0; right: 0; padding: 2px 6px; border: 0; border-radius: 4px; background: #eef3f7; color: #526b82; font-size: 10px; opacity: 1; }
#all-floor-panel { margin: 0; padding: 0; border: 0; }
#all-floor-panel > summary { color: #3d576e; }
.game-channel-count { border-radius: 6px; padding: 4px 6px; }
.game-channel-count dd { font-size: 14px; letter-spacing: -.025em; }
.activity-pie-total { fill: #243b53; letter-spacing: -.025em; }
.activity-pie-legend { color: #526b82; line-height: 1.6; }
.activity-pie-slice-label { stroke-width: 1.8px; }
.metrics { margin: 12px 0; gap: 12px; }
.metric { padding: 8px 10px; border: 0; border-radius: 0; box-shadow: none; }
.metric-value { color: var(--notebook-navy); }
.metric.is-accent { background: #ecf6f2; border-color: #c8e1d7; }
.record-list-summary { margin: 0 0 var(--notebook-section-gap); padding: 0; gap: var(--notebook-chart-gap); border: 0; }
.record-list-outcomes, .record-list-summary > .player-run-distribution,
.record-list-summary > .record-outcome-trend {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.record-list-summary-heading h3 { color: #334b64; }
.table-wrap > table > thead th { background: #eef3f8; color: #526a84; border-color: #dfe7ef; }
.table-wrap > table > thead th button { border-radius: 4px; }
.table-wrap > table > tbody > tr > td { border-bottom-color: #e7edf3; }
.table-wrap:not([data-view="records"]):not([data-view="feedback"]) > table > tbody > tr:nth-child(even) { background: #f9fbfd; }
.table-wrap:not([data-view="records"]):not([data-view="feedback"]) > table > tbody > tr:hover { background: #eef6f5; }
.table-wrap > table > thead th[aria-sort="ascending"],
.table-wrap > table > thead th[aria-sort="descending"] { color: #1e766b; background: #e6f2ee; }
.model-name { color: #2b445e; }
.card-summary-item, .card-statistics-item, .card-act-item {
  border-radius: 12px;
  box-shadow: 0 2px 8px #172c4408;
}
.card-summary-rate { border-radius: 7px; }
.card-grid-sort button, .card-balance-ranking-tabs button { border-radius: 8px; }
.card-grid-sort button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px #ffffff40; }
.card-balance-ranking-panel { border-radius: 12px; }
.player-retention-metric { border-radius: 13px; background: #fcfdff; border-color: #dfe7f0; }
.player-retention-metric h4 { color: #4d6380; }
.player-retention-rate { color: #345f8c; font-weight: 750; letter-spacing: -.03em; }

/* Unified dialog frame without changing fullscreen record-detail behavior. */
.workshop-growth, .achievement-rates, .player-retention-dialog, .card-export {
  border-color: #d6e0eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px #12283e33;
}
.workshop-growth::backdrop, .achievement-rates::backdrop,
.player-retention-dialog::backdrop, .card-export::backdrop { background: #11273bcc; }
.workshop-growth-header, .achievement-rates-header,
.player-retention-header, .card-export-header, .record-detail-header {
  border-bottom-color: #dce5ee;
  background: #f2f6fa;
  color: var(--notebook-navy);
}
.player-retention-header { background: linear-gradient(110deg, #f1eef8, #f8fafc); }
.workshop-growth-header { background: linear-gradient(110deg, #edf5fa, #f8fafc); }
.achievement-rates-header { background: linear-gradient(110deg, #faf4e8, #f8fafc); }
.workshop-growth-plots > section { border-radius: 12px; border-color: #e0e8ef; background: #fcfdfe; }
.achievement-rates-table { border-color: #dfe7ef; border-radius: 12px; }
.achievement-rates-table thead { background: #eef3f8; }
.achievement-rates-table tbody tr:nth-child(even) { background: #f7fafc; }
.player-retention-table thead th { background: #f0f3f9; }
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) and (pointer: coarse) {
  .activity-charts > section:not(.all-floor-panel), .activity-share-grid > section { padding: 0; }
  .record-list-outcomes, .record-list-summary > .player-run-distribution,
  .record-list-summary > .record-outcome-trend { padding: 0; }
  #table-wrap:is([data-view="records"], [data-view="feedback"]) tbody tr { border-radius: 14px; box-shadow: 0 3px 10px #172c4408; }
  .workshop-growth, .achievement-rates, .player-retention-dialog, .card-export { border-radius: 13px; }
}
