/*
 * The player's own page. Drawn from the shared palette, so it follows whatever
 * template is running and whatever colours the owner picked.
 */

.dash-none {
    margin: 0; color: var(--cms-dim, #9AA1B1);
    max-width: var(--cms-measure, 68ch);
}

.dash-link-lede { margin: 0 0 14px; color: var(--cms-dim, #9AA1B1); }

/* ---- the numbers at the top ---- */

.dash-figures {
    display: grid; gap: 10px; margin: 22px 0 26px;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.dash-figure {
    display: grid; gap: 3px;
    padding: 15px 17px;
    background: var(--cms-pane, #1C202B);
    border: 1px solid var(--cms-line, #272C3A);
    border-radius: var(--cms-radius, 14px);
}

.dash-figure b {
    font-size: clamp(20px, 2.4vw, 27px); font-weight: 800;
    line-height: 1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--cms-txt, #E9EAEE);
}

.dash-figure span {
    font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--cms-dim, #9AA1B1);
}

/* ---- the tabs ---- */

.dash-tabs {
    display: flex; flex-wrap: wrap; gap: 7px;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--cms-line, #272C3A);
}

.dash-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 15px; border-radius: 999px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    color: var(--cms-dim, #9AA1B1);
    border: 1px solid var(--cms-line, #272C3A);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.dash-tab:hover { color: var(--cms-txt, #E9EAEE); border-color: var(--cms-dim, #9AA1B1); }

.dash-tab.is-on {
    color: var(--cms-btn-txt, #fff);
    background: var(--cms-accent, #D2432A);
    border-color: transparent;
}

/* The count beside a tab: quiet, and quieter still on the chosen one. */
.dash-tab span {
    font-size: 12px; font-variant-numeric: tabular-nums;
    padding: 1px 7px; border-radius: 999px;
    background: color-mix(in srgb, currentColor 14%, transparent);
}

/* ---- the tables ---- */

.dash-panel { min-width: 0; overflow-x: auto; }

.dash-table {
    width: 100%; border-collapse: collapse;
    font-size: 14px; min-width: 480px;
}

.dash-table th {
    text-align: start; padding: 0 14px 11px 0;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase;
    color: var(--cms-dim, #9AA1B1);
    border-bottom: 1px solid var(--cms-line, #272C3A);
    white-space: nowrap;
}

.dash-table td {
    padding: 13px 14px 13px 0;
    border-bottom: 1px solid var(--cms-line, #272C3A);
    color: var(--cms-txt, #E9EAEE);
    vertical-align: top;
}

.dash-table tr:last-child td { border-bottom: 0; }

.dash-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-num.is-in { color: var(--cms-good, #3BA55D); }
.dash-num.is-out { color: var(--cms-dim, #9AA1B1); }

/* The reference under a name: there when somebody needs to quote it, out of
   the way when they do not. */
.dash-sub {
    display: block; margin-top: 3px;
    font-size: 12px; color: var(--cms-dim, #9AA1B1);
    font-variant-numeric: tabular-nums;
}

.dash-pill {
    display: inline-block; white-space: nowrap;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: var(--cms-dim, #9AA1B1);
    border: 1px solid var(--cms-line, #272C3A);
}
.dash-pill-good { color: var(--cms-good, #3BA55D); border-color: currentColor; }
.dash-pill-wait { color: var(--cms-accent, #D2432A); border-color: currentColor; }

@media (max-width: 560px) {
    .dash-table th:nth-child(3), .dash-table td:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .dash-tab { transition-duration: 1ms; }
}
