.tool-usage-page {
  margin: 0;
  background: #f3f7f8;
  color: #14313a;
  font-family: "Source Sans 3", "Segoe UI", "Microsoft YaHei", sans-serif;
}
.tool-usage {
  --tu-ink: #14313a;
  --tu-muted: #4a6570;
  --tu-border: #d4e0e4;
  --tu-surface: #fff;
  --tu-grid: #edf2f4;
  --tu-visits: #2d6196;
  --tu-uses: #08776c;
  --tu-focus: #0b6ea4;
  box-sizing: border-box;
  color: var(--tu-ink);
  font: 400 15px/1.55 "Source Sans 3", "Segoe UI", "Microsoft YaHei", sans-serif;
  text-align: start;
  text-wrap: pretty;
}
:is([data-theme="dark"], .theme-dark) .tool-usage:not(.tool-usage-dashboard) {
  --tu-ink: #e6f0f3;
  --tu-muted: #b7c9d1;
  --tu-border: #36515a;
  --tu-surface: #152a32;
  --tu-grid: #25424c;
  --tu-visits: #88b9ec;
  --tu-uses: #65ccbd;
  --tu-focus: #8ecfff;
}
.tool-usage *, .tool-usage *::before, .tool-usage *::after { box-sizing: border-box; }
.tool-usage a, .tool-usage a:visited { color: var(--tu-visits); text-decoration: underline; text-underline-offset: .2em; }
.tool-usage :is(a, button, select, summary):focus-visible { outline: 2px solid var(--tu-focus); outline-offset: 3px; }
.tool-usage-dashboard { width: min(100% - 32px, 1160px); margin: 0 auto; padding: 22px 0 52px; }
.tu-navigation, .tu-panel-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
}
.tu-navigation { margin-bottom: clamp(22px, 4vw, 49px); font-weight: 650; }
.tu-languages { display: flex; gap: 16px; }
.tu-languages [aria-current] { color: var(--tu-ink); text-decoration: none; }
.tu-title h1 { margin: 0; font-size: clamp(28px, 4vw, 43px); line-height: 1.2; letter-spacing: -.02em; }
.tu-caption { color: var(--tu-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.tu-title .tu-caption { margin: 8px 0 0; min-height: 20px; }
.tu-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 24px 0 14px; }
.tool-usage label { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.tool-usage select {
  min-height: 42px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--tu-border);
  border-radius: 7px;
  background: var(--tu-surface);
  color: var(--tu-ink);
  font: inherit;
}
.tu-panel { min-width: 0; border: 1px solid var(--tu-border); border-radius: 13px; background: var(--tu-surface); padding: clamp(14px, 2.5vw, 27px); }
.tu-panel + .tu-panel { margin-top: 16px; }
.tu-panel-heading h2 { margin: 0; font-size: clamp(18px, 2.5vw, 23px); line-height: 1.3; }
.tu-totals { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 16px 0; }
.tu-total { display: grid; gap: 2px; min-width: 90px; }
.tu-total strong { font-size: clamp(22px, 4vw, 32px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.tu-key { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; }
.tu-key::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--tu-series); }
.tu-visits { --tu-series: var(--tu-visits); }
.tu-uses { --tu-series: var(--tu-uses); }
.tu-chart { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 8px; align-items: stretch; padding-top: 4px; }
.tu-axis { display: flex; flex-direction: column; justify-content: space-between; color: var(--tu-muted); font-size: 12px; line-height: 1; text-align: end; font-variant-numeric: tabular-nums; }
.tu-bars {
  display: grid;
  grid-template-columns: repeat(var(--tu-days), minmax(0, 1fr));
  height: 158px;
  border-block: 1px solid var(--tu-grid);
  background: linear-gradient(to bottom, transparent calc(50% - .5px), var(--tu-grid) calc(50% - .5px), var(--tu-grid) calc(50% + .5px), transparent calc(50% + .5px));
}
.tu-day { display: flex; align-items: flex-end; justify-content: center; gap: 1px; min-width: 0; }
.tu-bar { width: 40%; height: var(--tu-height); max-width: 27px; border-radius: 2px 2px 0 0; background: var(--tu-series); }
.tu-day:hover { background-color: var(--tu-grid); }
.tu-day[data-date]::after {
  content: attr(data-date);
  position: absolute;
  top: calc(100% + 5px);
  color: var(--tu-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tu-plot .tu-chart { margin-bottom: 25px; }
.tu-status { color: var(--tu-muted); min-height: 25px; padding: 4px 0; }
.tu-table-wrap { overflow-x: auto; margin-top: 12px; }
.tool-usage .tu-table { width: 100%; border-collapse: collapse; min-width: 390px; table-layout: auto; }
.tu-table :is(th, td) { border-bottom: 1px solid var(--tu-grid); padding: 10px 8px; text-align: start; vertical-align: top; }
.tu-table :is(th, td):not(:first-child) { text-align: end; font-variant-numeric: tabular-nums; }
.tu-table th { color: var(--tu-muted); font-weight: 650; font-size: 13px; }
.tu-table td { color: var(--tu-ink); }
.tu-table td small { display: block; color: var(--tu-muted); }
.tu-table td .tu-caption { white-space: nowrap; }
.tu-table a { font-weight: 650; }
.tu-meter { display: block; width: min(100%, 110px); height: 3px; margin: 4px 0 0 auto; background: var(--tu-grid); }
.tu-meter span { display: block; width: var(--tu-height); height: 100%; background: var(--tu-series); }
.tu-definition, .tu-daily { color: var(--tu-muted); margin-top: 16px; }
.tu-definition summary, .tu-daily summary { cursor: pointer; font-weight: 650; color: var(--tu-ink); }
.tu-definition p { margin: 7px 0; }
.tool-usage-footer { padding-block: 20px 28px; margin-inline: auto; width: min(100% - 32px, 1120px); }
.tool-usage-footer .tu-panel { padding: 14px 18px; }
.tool-usage-footer .tu-panel-heading h2 { font-size: 17px; }
.tool-usage-footer .tu-totals { margin: 9px 0; }
.tool-usage-footer .tu-total strong { font-size: 21px; }
.tool-usage-footer .tu-bars { height: 70px; }
.tool-usage-footer .tu-caption { margin: 8px 0 0; }
@media (max-width: 590px) {
  .tu-filters label { align-items: start; flex-direction: column; flex: 1 1 100%; gap: 3px; }
  .tu-filters select { width: 100%; }
  .tu-bars { height: 124px; }
  .tool-usage .tu-table { min-width: 280px; }
  .tool-usage .tu-ranking .tu-table { min-width: 0; table-layout: fixed; }
  .tu-ranking .tu-table th:first-child { width: 46%; }
  .tu-ranking .tu-table :is(th, td) { overflow-wrap: anywhere; }
  .tu-ranking .tu-table td .tu-caption { white-space: normal; }
  .tu-table :is(th, td) { padding-inline: 5px; }
  .tu-chart { column-gap: 5px; }
}
