.claude-board {
  max-width: 900px;
  margin: clamp(32px, 6vw, 78px) auto 56px;
}
.claude-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  align-items: center;
  gap: 12px 26px;
  margin-bottom: 16px;
}
.claude-illustration {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.claude-board h1 {
  margin: 0;
  color: var(--ink);
  font: 740 clamp(27px, 4vw, 42px)/1.18 var(--sans);
  letter-spacing: -.045em;
}
.claude-table-box {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.claude-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
}
.claude-table :is(th,td) {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.claude-table tr:last-child td { border-bottom: 0; }
.claude-table th {
  background: var(--panel-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
  letter-spacing: normal;
}
.claude-table th:first-child { width: 17%; }
.claude-table th:nth-child(2) { width: 28%; }
.claude-table th:nth-child(3) { width: 22%; }
.claude-table tbody tr[data-leader] {
  background: linear-gradient(90deg, rgb(57 255 136 / .075), transparent 65%);
}
.claude-rank,.claude-days,.claude-date { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.claude-rank { color: var(--ink-2); }
.claude-table tbody tr[data-leader] .claude-rank { color: var(--accent); }
.claude-days {
  color: var(--accent);
  font-size: clamp(23px, 3.5vw, 31px);
  line-height: 1.12;
  font-weight: 700;
}
.claude-unit { color: var(--ink-2); font-size: 12px; }
.claude-badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  line-height: 1.2;
  color: var(--accent);
  font-size: 12px;
}
.claude-badge[data-tier="emperor"], .claude-pending { color: var(--warn); }
.claude-badge[data-tier="dog"] { color: var(--mint); }
.claude-date { color: var(--ink-2); white-space: nowrap; }
.claude-pending { display: block; font-size: 11px; margin-top: 3px; }
.claude-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0;
  color: var(--ink-2);
  font-size: 12px;
}
.claude-meta details { max-width: 52ch; }
.claude-meta summary { width: fit-content; color: var(--ink); cursor: pointer; }
.claude-meta details p { line-height: 1.6; margin: 8px 0 0; }
@media (max-width: 580px) {
  .claude-board { margin: 26px auto 30px; }
  .claude-heading { grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
  .claude-table :is(th,td) { padding: 10px 8px; }
  .claude-table th:first-child { width: 15%; }
  .claude-table th:nth-child(2) { width: 25%; }
  .claude-table th:nth-child(3) { width: 24%; }
  .claude-table th,.claude-date,.claude-pending { font-size: 11px; }
  .claude-badge { padding: 3px 5px; font-size: 10px; }
}
.claude-table-named th:first-child { width: 11%; }
.claude-table-named th:nth-child(2) { width: 34%; }
.claude-table-named th:nth-child(3) { width: 18%; }
.claude-table-named th:nth-child(4) { width: 15%; }
.claude-person {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}
.claude-avatar {
  display: block;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
}
.claude-avatar.is-pixel { image-rendering: pixelated; }
.claude-person-label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}
.claude-account-number {
  color: var(--ink-2);
  font: 500 11px/1.2 var(--sans);
  overflow-wrap: anywhere;
}
.claude-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .claude-table-named :is(th,td) { padding-inline: 4px; }
  .claude-table-named th:first-child { width: 11%; padding-left: 7px; }
  .claude-table-named td:first-child { padding-left: 7px; }
  .claude-table-named th:nth-child(2) { width: 33%; }
  .claude-table-named th:nth-child(3) { width: 19%; }
  .claude-table-named th:nth-child(4) { width: 13%; }
  .claude-table-named .claude-person { gap: 5px; }
  .claude-table-named .claude-avatar { width: 22px; height: 22px; border-radius: 5px; }
  .claude-table-named .claude-name { font-size: 11px; }
  .claude-table-named .claude-date { font-size: 10px; }
  .claude-table-named .claude-days { font-size: 17px; }
  .claude-table-named .claude-unit { font-size: 10px; }
}
.claude-back {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--ink-2);
  font-size: 13px;
}
.claude-status { color: var(--ink-2); font-size: 13px; }
.claude-status[data-error] { color: var(--warn); }
.claude-counts { display: flex; align-items: center; gap: 12px; }
.claude-counts button {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

@media (max-width: 580px) {
  html[lang="en"] .claude-table-named th:first-child { width: 13%; }
  html[lang="en"] .claude-table-named th:nth-child(2) { width: 28%; }
  html[lang="en"] .claude-table-named th:nth-child(3) { width: 20%; }
  html[lang="en"] .claude-table-named th:nth-child(4) { width: 15%; }
  html[lang="en"] .claude-table-named .claude-badge { padding-inline: 2px; }
}
.claude-clock {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 7px;
}
.claude-clock-piece {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}
.claude-clock-value {
  color: var(--accent);
  font: 700 clamp(15px, 2.5vw, 24px)/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.claude-clock-unit { color: var(--ink-2); font-size: 11px; }
@media (max-width: 580px) {
  .claude-clock { column-gap: 4px; }
  .claude-clock-unit { font-size: 10px; }
}
.claude-deduction { display: block; margin-top: 4px; }
.claude-history { margin-top: 14px; color: var(--ink-2); }
.claude-history summary { cursor: pointer; width: fit-content; font-size: 14px; }
.claude-history[open] summary { margin-bottom: 10px; }
.claude-history button {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

/* Phones: "首次记录 2026-10-24" / "First recorded 2026-10-24" breaks at its space, never inside the date
   (overflow-wrap:anywhere used to leave "2026-10-" and "24" on two lines). Long nicknames still wrap. */
@media (max-width: 580px) {
  .claude-account-number { overflow-wrap: break-word; }
  /* Ranks (13px, up to three digits) and days need less room than they had; the freed width goes to the
     rider column, so long nicknames take fewer lines. Title and last report keep their widths; every column
     stays (zh 10/35/18/13/24 %, en 11/31/19/15/24 %). */
  .claude-table-named th:first-child { width: 10%; }
  .claude-table-named th:nth-child(2) { width: 35%; }
  .claude-table-named th:nth-child(3) { width: 18%; }
  html[lang="en"] .claude-table-named th:first-child { width: 11%; }
  html[lang="en"] .claude-table-named th:nth-child(2) { width: 31%; }
  html[lang="en"] .claude-table-named th:nth-child(3) { width: 19%; }
  .claude-table-named .claude-rank { font-size: 13px; }
}
