.analytics-choice{position:fixed;bottom:18px;left:16px;right:16px;max-width:700px;margin:auto;padding:20px;background:#fff;color:#29243a;border:2px solid #58449a;border-radius:18px;box-shadow:0 8px 40px #0004;z-index:1000}.analytics-choice button{margin:6px;padding:12px 18px;min-height:44px}.analytics-choice a{display:block;margin:8px}.analytics-settings{background:transparent;color:inherit;border:1px solid currentColor;padding:8px;border-radius:8px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}.stat-card{padding:18px;border:1px solid #e0dced;border-radius:16px;background:#fff}.stat-card strong{display:block;font-size:30px;color:#382773}.stat-card small{display:block;color:#655c78}.stats-controls{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.stats-controls label{flex:1;min-width:135px}.stats-table{width:100%;border-collapse:collapse}.stats-table td,.stats-table th{padding:12px 8px;text-align:left;border-bottom:1px solid #e7e2ee}.stats-chart{display:flex;align-items:end;gap:4px;height:180px;overflow-x:auto;padding:20px 0}.stats-bar{flex:1;min-width:12px;background:#6955a3;border-radius:4px 4px 0 0}.stats-chart-wrap{padding:15px;background:#f5f2fb;border-radius:14px}#statistics h2{margin-top:30px}#statistics details{margin:20px 0}#statistics [hidden],.analytics-choice[hidden]{display:none}

/* Keep large reports within the reading column on narrow owner screens. */
#statistics,
.stats-table-wrap,
.stats-chart-wrap {
  min-width: 0;
  max-width: 100%;
}
.stats-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.stats-table-wrap:focus-visible {
  outline: 3px solid #7956a7;
  outline-offset: 2px;
}
#stats-news .stats-table {
  min-width: 47rem;
}
#stats-news .stats-table :is(td, th):first-child {
  min-width: 12rem;
  max-width: 22rem;
  overflow-wrap: anywhere;
}
.stats-scroll-hint {
  display: none;
}
@media (max-width: 760px) {
  .stats-scroll-hint:has(+ #stats-news table tr:nth-child(2)) {
    display: block;
    font-size: .9rem;
  }
  #statistics .stats-controls label {
    min-width: min(100%, 8.5rem);
  }
  #statistics .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  }
}
