:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --line: #e6e9ef;
  --soft: #f6f7f9;
  --orange: #f45d37;
  --green: #16866a;
  --green-soft: #e9f5f1;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 14px/1.5 Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
.topbar {
  min-height: 92px;
  padding: 20px clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
h1, h2, p { margin: 0; }
h1 { margin-top: 2px; font-size: 25px; letter-spacing: -.03em; }
h2 { font-size: 20px; letter-spacing: -.02em; }
.eyebrow {
  color: #9aa2af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.online { color: var(--green); font-weight: 700; }
.online i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #21b58b;
  box-shadow: 0 0 0 4px #e4f7f1;
}
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3b4558;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}
.download { color: var(--orange); }
main { padding: 34px clamp(24px, 5vw, 72px) 60px; }
.summary {
  display: grid;
  grid-template-columns: minmax(300px, 1.7fr) repeat(4, minmax(100px, .55fr));
  gap: 0;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.summary-lead { padding-right: 48px; }
.summary-lead > span, .metric span { color: var(--muted); font-weight: 650; }
.summary-lead strong { display: block; margin: 8px 0 10px; font-size: 34px; }
.summary-lead p { margin-top: 9px; color: var(--muted); }
.summary-lead p b { color: var(--ink); }
.metric {
  min-height: 104px;
  padding: 11px 26px;
  border-left: 1px solid var(--line);
}
.metric strong { display: block; margin-top: 12px; font-size: 28px; }
.progress { height: 7px; overflow: hidden; border-radius: 99px; background: #e9edf0; }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s ease; }
.progress-large { height: 9px; }
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 54px;
  padding-top: 34px;
}
.section-heading, .aside-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.section-heading > p, .aside-heading > span { color: var(--muted); font-size: 12px; }
.category-group { border-top: 1px solid var(--line); }
.category-group:last-child { border-bottom: 1px solid var(--line); }
.group-head {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 110px minmax(180px, .8fr) 28px;
  gap: 22px;
  align-items: center;
  padding: 21px 2px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.group-title strong { display: block; font-size: 16px; }
.group-title span, .group-total span { color: var(--muted); font-size: 12px; }
.group-total strong { display: block; font-size: 17px; }
.chevron { color: #87909f; font-size: 18px; transition: transform .2s; }
.category-group.open .chevron { transform: rotate(180deg); }
.children { display: none; padding: 0 0 18px 22px; }
.category-group.open .children { display: block; }
.category-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) 92px minmax(150px, .9fr) 160px 96px;
  gap: 20px;
  align-items: center;
  min-height: 66px;
  padding: 12px 0;
  border-top: 1px solid #eff1f4;
}
.category-name strong { display: block; }
.category-name span, .count-cell span, .status-cell { color: var(--muted); font-size: 12px; }
.count-cell strong { font-size: 16px; }
.target-field {
  display: flex;
  align-items: center;
  gap: 7px;
}
.target-field input {
  width: 70px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-align: right;
}
.target-field input:focus { outline: 2px solid #fdd9cf; border-color: var(--orange); }
.target-field span { color: var(--muted); font-size: 12px; }
.contributors {
  overflow: hidden;
  color: #566074;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.export-link { color: var(--orange); font-size: 12px; font-weight: 800; text-decoration: none; }
aside { border-left: 1px solid var(--line); padding-left: 34px; }
.activity-item { padding: 15px 0; border-top: 1px solid var(--line); }
.activity-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.empty { padding: 26px 0; color: var(--muted); }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 11px 15px;
  border-radius: 8px;
  color: #fff;
  background: #172033;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: .2s;
}
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .summary { grid-template-columns: repeat(4, 1fr); }
  .summary-lead { grid-column: 1 / -1; padding: 0 0 24px; }
  .metric:first-of-type { border-left: 0; padding-left: 0; }
  .workspace { grid-template-columns: 1fr; }
  aside { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; }
}
@media (max-width: 720px) {
  .topbar, .topbar-actions, .section-heading { align-items: flex-start; }
  .topbar { gap: 18px; }
  .topbar-actions { flex-direction: column; gap: 8px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-of-type(odd) { border-left: 0; padding-left: 0; }
  .group-head { grid-template-columns: 1fr 72px 28px; }
  .group-head > .progress { display: none; }
  .category-row { grid-template-columns: 1fr 78px 95px; gap: 10px; }
  .status-cell, .contributors { display: none; }
}
