:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #22232a;
  background: #fff;
  --muted: #61636e;
  --divider: #e3e3e8;
  --purple: #4b3c93;
  --pale: #f5f3fc;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, a { font: inherit; color: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.frame { width: min(1180px, 100%); padding-inline: clamp(20px, 4.1vw, 64px); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--divider); }
.bar-inner, .wordmark, .account, .identity, .segmented, .board-title, .board-header, .freshness, .actions, .metric, .tool-line, .tool-line span, .member, .tool-name, th span { display: flex; align-items: center; }
.bar-inner { min-height: 66px; justify-content: space-between; gap: 16px; }
.wordmark { gap: 10px; font-size: 23px; letter-spacing: -.065em; font-weight: 720; text-decoration: none; }
.brandmark { flex: none; width: 31px; height: 31px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--purple); }
.brandmark i { height: 11px; width: 3px; transform: skewY(-24deg); background: #fff; }
.brandmark i:nth-child(2) { height: 17px; }
.brandmark i:nth-child(3) { height: 13px; background: #ff9b67; }
.account { gap: 15px; font-size: 13px; min-width: 0; }
.identity { gap: 8px; min-width: 0; }
#account-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 24ch; }
.avatar { flex: none; background: #f1f1f4; color: #585762; width: 29px; height: 29px; display: grid; place-content: center; border-radius: 8px; font-size: 12px; font-weight: 650; }
.quiet { color: var(--muted); background: transparent; border: 0; padding: 5px 3px; font-size: 13px; }
.quiet:hover, .text-link:hover { color: var(--purple); text-decoration: underline; }
#logout { border-left: 1px solid var(--divider); padding-left: 14px; flex: none; }
.sr-only, .skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { z-index: 5; left: 10px; top: 10px; width: auto; height: auto; clip-path: none; background: #fff; padding: 8px; }
main { padding-block: clamp(30px, 5vw, 67px) 70px; }
h1 { font-size: clamp(32px, 4vw, 51px); font-weight: 660; letter-spacing: -.065em; line-height: 1.15; }
#boot, .meta, .lead, .empty p { color: var(--muted); }
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.meta { margin-top: 13px; font-size: 13px; line-height: 1.65; font-variant-numeric: tabular-nums; }
.segmented { flex: none; background: #f3f3f5; padding: 4px; gap: 2px; border-radius: 9px; }
.segmented button { min-height: 34px; padding: 4px 13px; border: 0; background: transparent; border-radius: 6px; font-size: 13px; color: var(--muted); }
.segmented button[aria-pressed=true] { color: var(--purple); font-weight: 650; background: #fff; box-shadow: 0 1px 3px #2421341c; }
.profile { display: grid; grid-template-columns: minmax(118px, .9fr) minmax(165px, 1.25fr) minmax(350px, 3fr); margin-block: 31px 36px; border-block: 1px solid var(--divider); padding-block: 25px; align-items: center; }
.profile h2, .tool-name { color: var(--muted); font-size: 12px; font-weight: 500; }
.profile-rank, .profile-total { padding-right: 16px; }
.profile-total, .my-tools { border-left: 1px solid var(--divider); padding-left: clamp(16px, 2.4vw, 35px); }
.large, .metric strong { display: block; margin-top: 8px; line-height: 1.06; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.055em; }
.large { color: var(--purple); font-size: clamp(31px, 3.4vw, 43px); }
.large.unranked { font-size: 24px; letter-spacing: -.04em; }
.metric { gap: 6px; align-items: baseline; flex-wrap: wrap; }
.metric strong { font-size: clamp(25px, 3vw, 35px); }
.metric span { color: var(--muted); font-size: 12px; }
.my-tools { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.tool-name { gap: 6px; white-space: nowrap; }
.tool-name img { width: 23px; height: 23px; object-fit: contain; }
.tool-total { display: block; margin-top: 7px; font-size: clamp(17px, 2.1vw, 23px); font-weight: 600; letter-spacing: -.055em; }
.board-header { justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.board-title { gap: 12px; }
.board-title h2 { font-size: 21px; font-weight: 660; letter-spacing: -.055em; }
.board-title span, .freshness { color: var(--muted); font-size: 12px; }
.freshness { gap: 12px; }
.freshness time:empty { display: none; }
.refresh { color: var(--purple); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.rank-col { width: 7%; }
.name-col { width: 24%; }
.sum-col { width: 18%; }
.tool-col { width: 17%; }
th { font-size: 12px; font-weight: 550; color: var(--muted); text-align: left; border-block: 1px solid var(--divider); padding: 10px 8px; }
th span { justify-content: end; gap: 5px; }
th img { width: 17px; height: 17px; object-fit: contain; }
td { padding: 14px 8px; font-size: 14px; border-bottom: 1px solid #eeeeF1; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 3px; }
th:last-child, td:last-child { padding-right: 3px; }
.quant { text-align: right; }
.row-rank { color: var(--muted); letter-spacing: -.025em; }
.top-rank { color: var(--purple); font-weight: 700; }
.member { gap: 8px; min-width: 0; }
.member-name { min-width: 0; overflow-wrap: anywhere; }
.my-tag { display: inline-block; margin-inline-start: 5px; color: var(--purple); font-size: 11px; }
.me .avatar { color: var(--purple); background: var(--pale); }
.row-total { font-weight: 650; }
.row-source { color: #565764; }
.inspect { display: none; border: 0; background: transparent; color: var(--purple); font-size: 11px; padding: 3px 0; }
.expanded-details { display: none; }
.empty { padding-block: 46px; text-align: center; border-bottom: 1px solid var(--divider); }
.empty h3 { font-size: 16px; font-weight: 600; }
.empty p { margin-top: 9px; font-size: 13px; line-height: 1.6; }
.rank-message:not(:empty), .feedback:not(:empty) { padding: 13px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rank-message button { margin-left: 10px; color: var(--purple); }
.gate { max-width: 445px; margin: clamp(34px, 7vh, 85px) auto 0; }
.download-app { margin: 28px auto 0; max-width: 445px; font-size: 14px; color: var(--muted); }
.download-app > summary { cursor: pointer; width: fit-content; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
.download-links a { color: var(--purple); }
#ranking:not([hidden]) ~ .download-app { margin-left: 0; }
#device:not([hidden]) ~ .download-app, #boot:not([hidden]) ~ .download-app { display: none; }
.auth-notice { max-width: 480px; margin: 15vh auto; padding: 24px; }
.auth-notice p { margin-top: 16px; }
.mark-large { width: 52px; height: 52px; border-radius: 14px; gap: 4px; margin-bottom: 23px; }
.mark-large i { width: 5px; height: 18px; }
.mark-large i:nth-child(2) { height: 28px; }
.mark-large i:nth-child(3) { height: 22px; }
.gate h1 { font-size: 35px; }
.lead { margin-top: 16px; font-size: 15px; line-height: 1.8; }
.tool-line { margin-block: 23px 28px; gap: 16px; flex-wrap: wrap; }
.tool-line span { gap: 5px; font-size: 12px; color: var(--muted); }
.tool-line img { width: 22px; height: 22px; object-fit: contain; }
.primary, .secondary { border: 1px solid transparent; display: inline-flex; gap: 12px; align-items: center; justify-content: center; text-decoration: none; border-radius: 8px; min-height: 44px; padding: 9px 19px; font-size: 14px; font-weight: 550; }
.primary { background: var(--purple); color: #fff; }
.primary:hover { background: #3b2d7d; }
.secondary { background: #fff; border-color: var(--divider); }
.secondary:hover { border-color: #9995ae; }
.actions { gap: 10px; }
.device-code { margin-block: 23px 12px; padding: 14px 18px; border: 1px solid var(--divider); border-radius: 8px; }
.device-code span { display: block; color: var(--muted); font-size: 12px; }
.device-code strong { display: block; margin-top: 6px; color: var(--purple); font: 650 25px/1.4 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .08em; overflow-wrap: anywhere; }
#device-account { white-space: normal; overflow-wrap: anywhere; color: var(--muted); margin-bottom: 20px; font-size: 13px; }
.text-link { display: inline-block; margin-top: 18px; color: var(--purple); }
@media(max-width: 880px) {
  .profile { grid-template-columns: minmax(96px,.85fr) minmax(130px,1.05fr) minmax(295px,2.6fr); }
  .tool-name { font-size: 11px; gap: 4px; }
  .tool-name img { width: 19px; height: 19px; }
  .name-col { width: 22%; }
  .sum-col { width: 20%; }
}
@media(max-width: 700px) {
  .bar-inner { min-height: 56px; }
  .wordmark { font-size: 21px; }
  .brandmark:not(.mark-large) { width: 27px; height: 27px; border-radius: 7px; }
  #account-name { max-width: 12ch; }
  .account { gap: 9px; }
  #logout { padding-left: 9px; }
  .heading { display: block; }
  .segmented { margin-top: 16px; width: max-content; }
  .profile { grid-template-columns: minmax(85px, .8fr) minmax(0, 1.8fr); row-gap: 19px; padding-block: 20px; margin-block: 21px 25px; }
  .my-tools { grid-column: 1 / -1; border: 0; padding: 14px 0 0; border-top: 1px solid #eeeeF1; }
  .profile-total { padding-right: 0; }
  .tool-total { font-size: 19px; }
  .freshness { gap: 8px; }
  .board-header { gap: 5px; }
  .board-title { gap: 6px; }
  .board-title h2 { font-size: 18px; }
  .source-col, .tool-col { display: none; }
  .rank-col { width: 15%; }
  .name-col { width: 46%; }
  .sum-col { width: 39%; }
  td { padding: 11px 5px; }
  .row-total { padding-right: 3px; }
  .member { gap: 6px; }
  .inspect { display: inline-block; }
  .row-total > strong { display: block; font-weight: inherit; }
  .expanded-details { display: table-row; }
  .expanded-details td { padding: 0 3px 13px; }
  .detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 10px; background: #fafafa; border-radius: 5px; }
  .detail-grid strong { display: block; padding-top: 4px; font-size: 12px; overflow-wrap: anywhere; }
  .gate { margin-top: 26px; }
}
@media(max-width: 390px) {
  .freshness { font-size: 10px; gap: 4px; }
  .account .avatar, .member .avatar { display: none; }
  .frame { padding-inline: 16px; }
}
