/* The dashboard's look. Charts: one hue for a count (--bar), a lighter step of it for a
   bar's second part (--bar-second); text always in the text colours, never the bar's. */
:root { --ink: #0b0b0b; --muted: #52514e; --line: #e3e2df; --surface: #fcfcfb; --page: #f3f2ef;
  --bar: #2a78d6; --bar-second: #9ec5f4; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px;
  color: var(--ink); background: var(--page); }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px;
  background: var(--surface); border-bottom: 1px solid var(--line); }
header.top a.home { color: var(--bar); text-decoration: none; font-weight: 600; }
header.top .who { color: var(--muted); }
main { max-width: 1280px; margin: 0 auto; padding: 16px 24px 48px; }
h2 { margin: 16px 0 8px; font-size: 1.5rem; }
.kr-articles .notice { background: #fff8e1; border: 1px solid #ecd9a0; border-radius: 6px; padding: 10px 14px; margin: 8px 0 16px; }
.kr-articles .notice p { margin: 4px 0 0; }
.kr-articles .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.kr-articles .filters label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.kr-articles .filters input, .kr-articles .filters select { font: inherit; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--surface); color: var(--ink); }
.kr-articles .tiles { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.kr-articles .tile { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; min-width: 150px; background: var(--surface); }
.kr-articles .tile .value { font-size: 1.8em; font-weight: 600; line-height: 1.2; }
.kr-articles .tile .label { color: var(--muted); }
.kr-articles .charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kr-articles .chart { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px 14px; min-width: 0; }
.kr-articles .chart h3 { margin: 12px 0 4px; font-size: 1.1rem; }
.kr-articles .chart .note { color: var(--muted); margin: 0 0 8px; }
.kr-articles .row { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; align-items: center; gap: 8px; padding: 2px 0; }
.kr-articles .row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kr-articles .row .track { display: flex; align-items: center; gap: 2px; min-height: 16px; }
.kr-articles .row .bar { height: 14px; background: var(--bar); border-radius: 0 4px 4px 0; }
.kr-articles .row .bar.second { background: var(--bar-second); }
.kr-articles .row .bar.first.joined { border-radius: 0; }
.kr-articles .row .value { margin-left: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-articles .row:hover { background: var(--page); }
.kr-articles .legend { display: flex; gap: 16px; color: var(--muted); margin-bottom: 6px; }
.kr-articles .legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.kr-articles table.data { border-collapse: collapse; width: 100%; }
.kr-articles table.data th, .kr-articles table.data td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.kr-articles table.data th { color: var(--muted); font-weight: 600; }
@media (max-width: 520px) { .kr-articles .charts { grid-template-columns: 1fr; } main { padding: 12px; } }
