/* Login, Revenue and Leaderboard. Same tokens as the rest of the site. */
.tm-range { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tm-range label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.tm-range input { height: var(--control); padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 12px; }
a.tm-person { display: inline-flex; align-items: center; padding: 0 12px; border-radius: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
a.tm-person[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(50, 51, 56, .08); }

body.tm-wait .tm-board, body.tm-wait .tm-total, body.tm-wait .tm-chart-card { opacity: .5; transition: opacity 120ms ease; }
.tm-total { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; margin-bottom: 16px; }
.tm-total span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.tm-total b { font-size: 34px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; color: var(--green); }
.tm-chart { position: relative; min-height: 300px; }
.tm-chart svg { display: block; max-width: 100%; }
.tm-grid { stroke: var(--line); stroke-width: 1; }
.tm-axis { fill: var(--text-3); font-size: 11px; }
.tm-line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.tm-dot { fill: var(--green); stroke: var(--surface); stroke-width: 2; }
.tm-cross { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.tm-tip { position: absolute; display: flex; flex-direction: column; padding: 6px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 18px rgba(20, 22, 32, .1); pointer-events: none; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.tm-tip[hidden] { display: none; }
.tm-tip b { font-size: 14px; color: var(--green); }
.tm-none { padding: 110px 0; text-align: center; color: var(--text-3); }

.tm-list-card { margin-top: 16px; }
.tm-none.small { padding: 16px 0; }
.tm-row, .tm-day summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 13px; color: var(--text); }
.tm-row { border-top: 1px solid var(--line); }
.tm-row:first-child { border-top: 0; }
.tm-row span { overflow-wrap: anywhere; }
.tm-row b, .tm-day summary b { color: var(--green); font-weight: 700; white-space: nowrap; }
.tm-day { border-top: 1px solid var(--line); }
.tm-day:first-child { border-top: 0; }
.tm-day summary { cursor: pointer; font-weight: 600; list-style: none; }
.tm-day summary::-webkit-details-marker { display: none; }
.tm-day summary span::before { content: "›"; display: inline-block; width: 16px; color: var(--text-3); transition: transform var(--t); }
.tm-day[open] summary span::before { transform: rotate(90deg); }
.tm-day-rows { padding: 0 0 8px 16px; }
.tm-day-rows .tm-row { padding: 8px 0; font-size: 12px; color: var(--text-2); }

.tm-board { display: flex; flex-direction: column; gap: 16px; }
.tm-place { position: relative; overflow: hidden; display: grid; grid-template-columns: 72px 56px 1fr auto; align-items: center; gap: 16px; padding: 24px 28px; }
.tm-rank { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: var(--text-3); }
.tm-rank svg { width: 22px; height: 22px; fill: #F5B301; }
.tm-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft-2); color: var(--accent); font-size: 22px; font-weight: 700; }
.tm-name { font-size: 18px; font-weight: 600; color: var(--text); }
.tm-money { font-size: 26px; font-weight: 700; letter-spacing: -.4px; color: var(--green); }
.tm-place.first { grid-template-columns: 96px 72px 1fr auto; padding-block: 44px; border-color: rgba(97, 97, 255, .3); background: linear-gradient(120deg, rgba(97, 97, 255, .1), rgba(0, 133, 74, .07) 70%, var(--surface)); }
.tm-place.first .tm-rank { color: var(--accent); font-size: 26px; }
.tm-place.first .tm-avatar { width: 72px; height: 72px; background: var(--accent); color: #fff; font-size: 28px; }
.tm-place.first .tm-name { font-size: 24px; font-weight: 700; }
.tm-place.first .tm-money { font-size: 38px; }

body.tm-login { display: grid; place-items: center; padding: 16px; }
.tm-login-box { width: min(380px, 100%); padding: 32px 28px; text-align: center; }
.tm-login-logo { width: 40px; height: 40px; border-radius: 10px; font-size: 20px; margin: 0 auto 12px; }
.tm-login-box h1 { font-size: 20px; font-weight: 700; }
.tm-login-box form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; text-align: left; }
.tm-login-box label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.tm-login-box input { height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; }
.tm-login-box .btn { justify-content: center; height: 40px; margin-top: 4px; }
.tm-login-bad { color: var(--red); font-size: 12px; }
.tm-login-bad[hidden] { display: none; }

.side-who { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); }
.side-who a { color: var(--accent); font-weight: 500; }

@media (max-width: 640px) {
  .tm-place, .tm-place.first { grid-template-columns: auto 44px 1fr; gap: 12px; padding: 20px 16px; }
  .tm-place .tm-avatar, .tm-place.first .tm-avatar { width: 44px; height: 44px; font-size: 18px; }
  .tm-money, .tm-place.first .tm-money { grid-column: 1 / -1; font-size: 28px; }
  .tm-name, .tm-place.first .tm-name { font-size: 17px; }
}
