.attendance .att-header {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.att-main {
  padding-block: clamp(34px, 6vw, 76px);
}
.att-intro h1 {
  font-size: clamp(38px, 7vw, 80px);
  max-width: 15ch;
  margin-bottom: 15px;
}
.att-intro p {
  color: var(--muted);
  max-width: 60ch;
}
.att-import {
  border-block: 1px solid var(--line);
  margin: 28px 0 12px;
  padding: 10px 0;
}
.att-import form {
  padding: 16px 0;
}
.att-upload-grid, .att-filters, .att-metrics {
  display: grid;
  gap: 14px;
}
.att-upload-grid, .att-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.att-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.att-actions button {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 4px;
}
.att-actions button:first-child {
  background: var(--green);
  color: #fff;
}
.att-status, .att-footnote {
  color: var(--muted);
  font-size: 0.9rem;
}
.att-status.att-error {
  color: #a7311c;
}
.att-metrics {
  margin: 22px 0;
}
.att-metrics div {
  background: #eeeee5;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px clamp(8px, 3vw, 22px);
}
.att-metrics dt {
  font-size: 0.9rem;
}
.att-metrics dd {
  color: var(--green);
  font-size: clamp(25px, 5vw, 41px);
  line-height: 1.3;
  font-weight: 600;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.att-filters {
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}
.attendance label {
  display: block;
  font-weight: 540;
  font-size: 0.875rem;
}
.attendance input, .attendance select {
  min-width: 0;
  width: 100%;
  display: block;
  font: inherit;
  padding: 8px;
  border: 1px solid #a8b0a5;
  border-radius: 4px;
  background: #faf9f3;
  color: var(--ink);
}
.attendance input:focus-visible, .attendance select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.attendance small {
  font-weight: 400;
}
.att-dashboard {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(18px, 5vw, 64px);
  align-items: start;
}
.att-results table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.att-results caption {
  text-align: left;
  color: var(--muted);
}
.att-results thead {
  border-bottom: 2px solid var(--ink);
}
.att-results td, .att-results th {
  padding: 8px 4px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
}
.att-results th:first-child { width: 65%; }
.att-results td { font-variant-numeric: tabular-nums; }
.att-results td:not(:first-child), .att-results thead th:not(:first-child) { text-align: right; }
.att-results th small { display: block; }
.att-artist {
  border: 0;
  padding: 2px 0;
  color: var(--ink);
  background: none;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}
.att-artist[aria-pressed="true"] {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
#set-detail {
  min-width: 0;
  border-top: 2px solid var(--green);
  padding: 12px 0;
}
#set-detail h2 { font-size: clamp(22px, 3vw, 34px); overflow-wrap: anywhere; }
.att-history { list-style: none; padding-left: 0; }
.att-history li {
  display: grid;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.att-history time, .att-link { color: var(--green); font-size: 0.875rem; }
.att-link { text-decoration: underline; }
.att-footnote { margin-top: 20px; }
@media (max-width: 760px) {
  .attendance .wrap { width: calc(100% - 32px); }
  .att-dashboard, .att-upload-grid { grid-template-columns: 1fr; }
  .att-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
