@charset "UTF-8";
:root {
    color-scheme: light;
    --bg: #f5f7fa;
    --surface: #fff;
    --surface-2: #f6f8fc;
    --text: #171a1c;
    --muted: #737b8c;
    --border: #e5e8ef;
    --primary: #1c5cfb;
    --primary-end: #0047f9;
    --accent: #1c5cfb;
    --accent-hover: #0047f9;
    --tint: #edf3ff;
    --blue: #5383fa;
    --shadow: 0 5px 24px rgba(24, 41, 46, 0.025);
    --negative: #cc6864;
    --revenue-alert-text: #b42318;
    --revenue-alert-bg: #fff1f0;
    --revenue-alert-hover: #ffe4e1;
    --sidebar: #fff;
    --grid: #edf0f6;
    --login-art: #102f7d;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #10141d;
    --surface: #191f2b;
    --surface-2: #222b3b;
    --text: #f1f4fb;
    --muted: #a2adc1;
    --border: #2c374a;
    --accent: #81a6ff;
    --accent-hover: #a1bdff;
    --tint: #223459;
    --blue: #91baff;
    --shadow: 0 5px 24px rgba(0, 0, 0, 0.06);
    --negative: #eb9690;
    --revenue-alert-text: #ffb4ad;
    --revenue-alert-bg: #3b2429;
    --revenue-alert-hover: #4b2b31;
    --sidebar: #141a25;
    --grid: #293447;
    --login-art: #102f7d;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    outline: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
[v-cloak] {
    display: none !important;
}
.icon {
    width: 20px;
    height: 20px;
    flex: none;
    vertical-align: middle;
}
h1,
h2,
h3,
p {
    margin: 0;
}
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 8px;
    padding: 10px 15px;
    transition:
        background 0.15s,
        border-color 0.15s;
}
button:hover:not(:disabled) {
    background: var(--surface-2);
    border-color: var(--muted);
}
.primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-end));
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}
.primary:hover:not(:disabled) {
    background: linear-gradient(90deg, #3972ff, #2663ff);
    border-color: #3972ff;
}
[data-theme="dark"] .primary {
    color: #ffffff;
}
.icon-button {
    padding: 9px;
    width: 38px;
    height: 38px;
}
.quiet {
    border-color: transparent;
    background: transparent;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}
.brand-mark {
    width: 37px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
}
.brand-mark .icon {
    width: 24px;
    height: 24px;
}
.brand-name {
    font-size: 20px;
    letter-spacing: -0.7px;
    font-weight: 750;
}
.brand-name span {
    font-weight: 400;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0;
    margin-left: 6px;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 232px;
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    padding: 32px 20px 20px;
    display: flex;
    flex-direction: column;
    z-index: 30;
}
.sidebar .brand {
    padding-left: 10px;
}
.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}
.nav-list {
    display: grid;
    gap: 7px;
}
.nav-item {
    width: 100%;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 13px 15px;
    font-size: 13px;
    gap: 13px;
}
.nav-item.active {
    color: var(--accent);
    background: var(--tint);
    font-weight: 650;
}
.nav-item.active:after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-left: auto;
}
.nav-number {
    font-size: 11px;
    margin-left: auto;
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
}
.sidebar-bottom {
    margin-top: auto;
}
.account {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 18px 3px 0;
    border-top: 1px solid var(--border);
}
.avatar {
    background: var(--tint);
    color: var(--accent);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.account-info {
    min-width: 0;
    flex: 1;
}
.account-info strong {
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-info small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}
.main {
    margin-left: 232px;
}
.topbar {
    height: 77px;
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
}
.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 12px;
}
.breadcrumb .icon {
    width: 12px;
}
.breadcrumb strong {
    color: var(--text);
    font-weight: 500;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.live-label {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
}
.top-actions .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
}
.content {
    max-width: 1600px;
    margin: auto;
    padding: 34px 40px 22px;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 2.1px;
    color: var(--accent);
    font-weight: 650;
    margin-bottom: 9px;
}
.page-heading h1 {
    font-size: 27px;
    letter-spacing: -0.8px;
    font-weight: 650;
}
.page-heading p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 9px;
}
.heading-actions {
    display: flex;
    gap: 10px;
}
.heading-actions button {
    font-size: 12px;
}
.filters {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
    padding: 20px 23px;
    margin-bottom: 22px;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
label.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
}
input,
select {
    height: 39px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    padding: 0 12px;
    min-width: 0;
}
input::placeholder {
    color: var(--muted);
}
select {
    min-width: 186px;
    max-width: 260px;
}
.segmented {
    display: flex;
    border: 1px solid var(--border);
    padding: 3px;
    border-radius: 8px;
    gap: 2px;
    background: var(--surface-2);
}
.segmented button {
    font-size: 11px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    padding: 7px 13px;
    min-height: 31px;
}
.segmented button.selected {
    background: var(--surface);
    color: var(--accent);
    box-shadow: 0 1px 4px #0000000b;
    font-weight: 650;
}
.date-fields {
    display: flex;
    align-items: center;
    gap: 8px;
}
.date-fields input {
    width: 145px;
    font-size: 12px;
}
.filter-submit {
    margin-left: auto;
    height: 39px;
    font-size: 12px;
    min-width: 94px;
}
.source-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.source-note .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}
.source-note .tag {
    margin-left: auto;
    white-space: nowrap;
}
.tag {
    font-size: 10px;
    color: var(--accent);
    background: var(--tint);
    border-radius: 5px;
    padding: 4px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 23px;
}
.metric {
    position: relative;
    padding: 21px 23px;
    overflow: hidden;
}
.metric-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 19px;
}
.metric-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--accent);
}
.metric-icon .icon {
    width: 17px;
    height: 17px;
}
.metric-value {
    font-size: 29px;
    line-height: 1.15;
    letter-spacing: -1px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.metric-value small {
    font-size: 18px;
    margin-right: 3px;
    font-weight: 500;
}
.metric-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--muted);
    margin-top: 17px;
}
.delta {
    color: var(--accent);
    font-weight: 600;
}
.delta.negative {
    color: var(--negative);
}
.metric:first-child {
    border-top: 2px solid var(--accent);
    padding-top: 20px;
}
.chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    margin-bottom: 23px;
}
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 23px 24px 0;
}
.panel-header h2 {
    font-size: 14px;
    font-weight: 650;
}
.panel-header p {
    font-size: 10px;
    color: var(--muted);
    margin-top: 7px;
    line-height: 1.6;
}
.panel-header .segmented button {
    font-size: 10px;
    padding: 5px 10px;
    min-height: 26px;
}
.legend {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    padding: 18px 25px 0;
}
.legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.chart-wrap {
    position: relative;
    margin: 10px 18px 7px;
    height: 251px;
}
.trend-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.trend-svg text {
    fill: var(--muted);
    font-size: 10px;
    font-family: inherit;
}
.chart-line {
    stroke: var(--accent);
    stroke-width: 2.8;
    fill: none;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.chart-gridline {
    stroke: var(--grid);
    stroke-width: 1;
    stroke-dasharray: 3 4;
}
.chart-tooltip {
    position: absolute;
    width: max-content;
    max-width: calc(100% - 12px);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 11px;
    pointer-events: none;
    z-index: 1;
}
.chart-tooltip strong {
    display: block;
    margin-top: 5px;
    color: var(--accent);
}
.empty-chart {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}
.empty-chart .icon {
    width: 30px;
    height: 30px;
    opacity: 0.5;
}
.rank-list {
    padding: 21px 24px;
}
.rank-item {
    margin-bottom: 22px;
}
.rank-top {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    margin-bottom: 10px;
}
.rank-index {
    font-size: 10px;
    color: var(--muted);
    width: 15px;
}
.rank-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
.rank-top strong {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.progress-track {
    height: 5px;
    border-radius: 10px;
    background: var(--surface-2);
    margin-left: 24px;
    overflow: hidden;
}
.progress-track i {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: var(--accent);
}
.rank-item:nth-child(2) i {
    opacity: 0.72;
}
.rank-item:nth-child(3) i {
    opacity: 0.52;
}
.rank-item:nth-child(4) i {
    opacity: 0.35;
}
.text-link {
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 11px;
    padding: 4px 0;
}
.table-panel {
    overflow: hidden;
    margin-bottom: 20px;
}
.table-panel .panel-header {
    padding-bottom: 20px;
}
.table-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}
.table-tools input {
    width: 190px;
    font-size: 11px;
    height: 34px;
}
.table-tools button {
    font-size: 11px;
    padding: 8px 10px;
}
.table-scroll {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
    white-space: nowrap;
    text-align: left;
}
th {
    background: var(--surface-2);
    font-size: 10px;
    letter-spacing: 0.15px;
    font-weight: 500;
    color: var(--muted);
    padding: 14px 23px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
td {
    padding: 16px 23px;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: var(--surface-2);
}
.numeric {
    text-align: right;
}
.money {
    color: var(--accent);
    font-weight: 600;
}
.game-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.game-tile {
    height: 30px;
    width: 30px;
    border-radius: 8px;
    background: var(--tint);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
}
.game-cell small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
}
.table-footer {
    padding: 14px 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--muted);
}
.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}
.pagination button {
    font-size: 11px;
    padding: 6px 10px;
}
.page-footer {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
    padding-top: 5px;
}
.error-banner {
    padding: 14px 18px;
    color: var(--negative);
    border: 1px solid currentColor;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.empty-row {
    text-align: center;
    padding: 45px 20px;
    color: var(--muted);
    font-size: 12px;
}
.loading-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    background-size: 200% 100%;
    animation: loading 1.4s infinite;
    position: fixed;
    top: 0;
    left: 232px;
    right: 0;
    z-index: 50;
}
@keyframes loading {
    to {
        background-position: -200% 0;
    }
}
.muted {
    color: var(--muted);
}
.mono {
    font-family: Consolas, monospace;
    font-size: 11px;
}
.openid {
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.detail-cell {
    white-space: normal;
    background: var(--surface-2);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    font-size: 11px;
}
.detail-grid span {
    color: var(--muted);
    display: block;
    margin-bottom: 5px;
}
.detail-grid strong {
    font-weight: 500;
    overflow-wrap: anywhere;
}
.game-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 22px 0;
}
.game-card {
    padding: 25px;
}
.game-card .game-tile {
    height: 42px;
    width: 42px;
    margin-bottom: 20px;
    font-size: 18px;
}
.game-card h3 {
    font-size: 16px;
    margin-bottom: 9px;
}
.game-card p {
    font-size: 11px;
    color: var(--muted);
}
.game-card-bottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-box {
    position: relative;
}
.search-box input {
    padding-left: 37px;
    width: 280px;
}
.search-box .icon {
    position: absolute;
    top: 11px;
    left: 12px;
    color: var(--muted);
    width: 17px;
    height: 17px;
}
.mobile-only {
    display: none;
}
.scrim {
    display: none;
}
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    background: var(--surface);
}
.login-art {
    padding: 48px 9%;
    position: relative;
    overflow: hidden;
    background: var(--login-art);
    color: #f2f6ff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.login-art:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 90% 50%, #24655455, transparent 65%),
        linear-gradient(#75c6af05 1px, transparent 1px),
        linear-gradient(90deg, #75c6af05 1px, transparent 1px);
    background-size:
        auto,
        54px 54px,
        54px 54px;
    pointer-events: none;
}
.login-art > * {
    position: relative;
}
.login-art .brand-mark {
    background: #ffffff;
    color: #1c5cfb;
}
.login-art .brand-name span {
    color: #93b5af;
}
.login-side {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 90px 50px 65px;
}
.login-theme {
    position: absolute;
    right: 35px;
    top: 32px;
}
.login-form {
    width: 100%;
    max-width: 350px;
}
.login-form .eyebrow {
    margin-bottom: 14px;
}
.login-form h2 {
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -1px;
}
.login-form > p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    margin: 13px 0 34px;
}
.login-form label.field {
    color: var(--text);
    font-size: 12px;
    gap: 10px;
    margin-bottom: 22px;
}
.login-form input {
    height: 47px;
    width: 100%;
    background: var(--surface-2);
    font-size: 13px;
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 45px;
}
.password-field button {
    position: absolute;
    right: 5px;
    top: 5px;
    border: 0;
    background: transparent;
}
.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    margin: 0 0 27px;
}
.remember-row label {
    display: flex;
    align-items: center;
    gap: 7px;
}
.remember-row input {
    width: 14px;
    height: 14px;
    accent-color: var(--accent);
}
.login-submit {
    width: 100%;
    height: 46px;
    justify-content: space-between;
    padding: 0 18px;
    font-size: 13px;
}
.login-footer {
    position: absolute;
    bottom: 28px;
    color: var(--muted);
    font-size: 10px;
}
.form-error {
    color: var(--negative);
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.spin {
    animation: spin 1.5s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@media (min-width: 1600px) {
    .content {
        padding-top: 40px;
    }
    .chart-wrap {
        height: 290px;
    }
    .chart-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }
    .metric {
        padding: 25px;
    }
    .metric:first-child {
        padding-top: 24px;
    }
    .metric-value {
        font-size: 34px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 208px;
        padding-inline: 15px;
    }
    .main {
        margin-left: 208px;
    }
    .loading-line {
        left: 208px;
    }
    .content {
        padding: 28px 25px;
    }
    .topbar {
        padding: 0 25px;
    }
    .brand-name {
        font-size: 18px;
    }
    .chart-grid {
        grid-template-columns: minmax(0, 1fr) 255px;
        gap: 16px;
    }
    .metric {
        padding: 18px;
    }
    .metric:first-child {
        padding-top: 17px;
    }
    .metric-value {
        font-size: 25px;
    }
    .filters {
        gap: 14px;
    }
    .filter-submit {
        margin-left: 0;
    }
    .game-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .login-story h1 {
        font-size: 34px;
    }
    .login-art {
        padding: 40px 9%;
    }
    .metric-foot {
        flex-wrap: wrap;
    }
}
@media (max-width: 960px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    .rank-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 30px;
    }
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .heading-actions button {
        padding: 9px 11px;
    }
    .login-page {
        grid-template-columns: 0.9fr 1fr;
    }
    .login-side {
        padding-inline: 30px;
    }
    .login-art {
        padding-inline: 30px;
    }
    .login-story h1 {
        font-size: 29px;
    }
    .visual-title {
        font-size: 19px;
    }
}
@media (max-width: 720px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
        width: 232px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .scrim.visible {
        display: block;
        position: fixed;
        inset: 0;
        background: #0007;
        z-index: 25;
        border: 0;
        border-radius: 0;
        width: 100%;
    }
    .main {
        margin-left: 0;
    }
    .loading-line {
        left: 0;
    }
    .mobile-only {
        display: inline-flex;
    }
    .topbar {
        height: 64px;
        padding: 0 18px;
    }
    .top-actions {
        gap: 8px;
    }
    .live-label {
        display: none;
    }
    .breadcrumb {
        gap: 8px;
    }
    .content {
        padding: 25px 18px;
    }
    .page-heading {
        align-items: flex-start;
        margin-bottom: 23px;
        flex-wrap: wrap;
        gap: 17px;
    }
    .page-heading h1 {
        font-size: 24px;
    }
    .page-heading p {
        font-size: 11px;
        line-height: 1.7;
    }
    .heading-actions {
        gap: 8px;
    }
    .heading-actions button {
        font-size: 11px;
    }
    .filters {
        padding: 16px;
        gap: 15px;
    }
    .filters .field {
        width: 100%;
    }
    .filters select {
        width: 100%;
        max-width: none;
    }
    .segmented {
        width: max-content;
        max-width: 100%;
        flex-wrap: wrap;
    }
    .segmented button {
        padding-inline: 11px;
    }
    .date-fields {
        width: 100%;
    }
    .date-fields input {
        width: calc(50% - 10px);
    }
    .filter-submit {
        width: 100%;
    }
    .source-note {
        align-items: flex-start;
        font-size: 10px;
    }
    .source-note .icon {
        margin-top: 2px;
    }
    .source-note .tag {
        display: none;
    }
    .metrics {
        gap: 12px;
        margin-bottom: 18px;
    }
    .metric {
        padding: 15px;
    }
    .metric:first-child {
        padding-top: 14px;
    }
    .metric-top {
        font-size: 11px;
        margin-bottom: 15px;
    }
    .metric-value {
        font-size: 25px;
    }
    .metric-foot {
        font-size: 9px;
        gap: 5px;
        margin-top: 14px;
    }
    .metric-icon {
        width: 25px;
        height: 25px;
    }
    .chart-grid {
        gap: 18px;
        margin-bottom: 18px;
    }
    .panel-header {
        padding: 19px 17px 0;
        flex-wrap: wrap;
        gap: 13px;
    }
    .panel-header h2 {
        font-size: 13px;
    }
    .chart-wrap {
        margin-inline: 9px;
        height: 230px;
    }
    .rank-list {
        padding: 23px 18px;
        gap: 0 20px;
    }
    .rank-top {
        font-size: 10px;
        gap: 6px;
    }
    .table-panel .panel-header {
        padding-bottom: 17px;
    }
    .table-tools {
        width: 100%;
    }
    .table-tools input {
        width: 100%;
        min-width: 0;
    }
    .table-tools button {
        flex-shrink: 0;
    }
    th,
    td {
        padding: 14px 17px;
    }
    .page-footer {
        flex-wrap: wrap;
        gap: 5px;
    }
    .table-footer {
        padding: 14px 17px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .game-cards {
        grid-template-columns: 1fr;
    }
    .search-box input {
        width: 100%;
    }
    .search-box {
        width: 100%;
    }
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .login-page {
        display: block;
    }
    .login-art {
        min-height: 200px;
        padding: 27px 26px;
    }
    .login-art .brand {
        margin-bottom: 27px;
    }
    .login-story {
        padding: 0;
    }
    .login-story .eyebrow,
    .login-story > p,
    .login-visual,
    .login-art-footer {
        display: none;
    }
    .login-story h1 {
        font-size: 24px;
        line-height: 1.5;
    }
    .login-story h1 br {
        display: none;
    }
    .login-story h1 em {
        margin-left: 8px;
    }
    .login-side {
        padding: 52px 26px 85px;
        min-height: calc(100vh - 200px);
    }
    .login-theme {
        right: 19px;
        top: 17px;
    }
    .login-form h2 {
        font-size: 27px;
    }
    .login-footer {
        bottom: 26px;
    }
    .login-form {
        max-width: 400px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
    }
}
/* Small-screen refinements: preserve phrase breaks and keyboard navigation. */
@media (max-width: 720px) {
    .sidebar {
        visibility: hidden;
    }
    .sidebar.open {
        visibility: visible;
    }
    .login-story h1 br {
        display: block;
    }
    .login-story h1 em {
        margin-left: 0;
    }
    .rank-list {
        grid-template-columns: 1fr;
    }
    .login-art {
        min-height: 218px;
    }
    .login-side {
        min-height: calc(100vh - 218px);
    }
}

/* Refined console: quiet surfaces, clear numeric hierarchy, compact navigation. */
.sidebar {
    width: 220px;
    padding: 30px 16px 20px;
}
.sidebar .brand {
    padding-left: 8px;
    gap: 9px;
}
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
}
.brand-mark .icon {
    width: 20px;
    height: 20px;
}
.brand-name {
    font-size: 19px;
    letter-spacing: -0.8px;
}
.nav-list {
    margin-top: 52px;
    gap: 8px;
}
.nav-item {
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 7px;
    gap: 13px;
}
.nav-item .icon {
    width: 18px;
    height: 18px;
}
.nav-item.active {
    background: var(--tint);
    color: var(--accent);
    position: relative;
}
.nav-item.active:before {
    content: "";
    position: absolute;
    height: 16px;
    width: 3px;
    border-radius: 2px;
    left: -16px;
    background: var(--accent);
}
.account {
    padding-top: 18px;
}
.avatar {
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    border: 1px solid var(--border);
}
.main {
    margin-left: 220px;
}
.loading-line {
    left: 220px;
}
.topbar {
    height: 62px;
    background: var(--bg);
    padding-inline: 36px;
}
.top-actions {
    gap: 8px;
}
.content {
    max-width: 1640px;
    padding: 34px 36px 24px;
}
.page-heading {
    margin-bottom: 28px;
    min-height: 40px;
}
.page-heading h1 {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -1px;
}
.heading-count {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--muted);
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
}
button {
    border-radius: 6px;
    padding: 9px 14px;
}
.heading-actions button {
    height: 36px;
}
.heading-actions .icon {
    height: 16px;
    width: 16px;
}
.panel {
    border-radius: 10px;
    box-shadow: none;
}
.filters {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 0 22px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
}
.filters select,
.filters input {
    font-size: 12px;
}
.source-note {
    margin-bottom: 15px;
    font-size: 11px;
    min-height: 24px;
}
.scope-info {
    position: relative;
    margin-left: auto;
}
.scope-info summary {
    cursor: pointer;
    display: flex;
    gap: 6px;
    align-items: center;
    list-style: none;
}
.scope-info summary::-webkit-details-marker {
    display: none;
}
.scope-info summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.scope-info > div {
    position: absolute;
    right: 0;
    top: 28px;
    width: 260px;
    max-width: 80vw;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 8px 30px #0001;
    z-index: 20;
    line-height: 1.8;
}
.metrics {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    gap: 0;
    margin-bottom: 22px;
    overflow: hidden;
}
.metric,
.metric:first-child {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 25px 26px;
}
.metric + .metric {
    border-left: 1px solid var(--border);
}
.metric-top {
    font-size: 12px;
    margin-bottom: 18px;
}
.metric-top > .icon {
    width: 16px;
    height: 16px;
    opacity: 0.55;
}
.metric-value {
    font-size: clamp(25px, 2.5vw, 38px);
    letter-spacing: -1.3px;
    font-weight: 500;
    line-height: 1.2;
}
.metric:first-child .metric-value {
    color: var(--accent);
}
.metric-value small {
    font-size: 20px;
    margin-right: 5px;
}
.metric-foot {
    margin-top: 15px;
    font-size: 10px;
}
.delta {
    background: var(--tint);
    padding: 3px 6px;
    border-radius: 4px;
}
.delta.negative {
    background: transparent;
}
.chart-grid {
    gap: 20px;
}
.panel-header {
    padding: 22px 24px 0;
}
.panel-header h2 {
    font-weight: 600;
}
.chart-gridline {
    stroke-dasharray: none;
}
.chart-line {
    stroke-width: 2.3;
}
.chart-wrap {
    height: 270px;
}
.legend {
    padding-top: 20px;
}
.progress-track {
    height: 4px;
    border-radius: 2px;
}
.rank-item {
    margin-bottom: 26px;
}
.table-panel .panel-header {
    padding-bottom: 22px;
}
th {
    background: var(--surface-2);
    font-size: 11px;
    font-weight: 500;
}
td {
    font-size: 12px;
    padding-block: 17px;
}
.money {
    color: var(--text);
    font-weight: 550;
}
.game-tile {
    border-radius: 8px;
    background: var(--tint);
}
.page-footer {
    justify-content: flex-end;
    font-size: 10px;
    opacity: 0.8;
}
.game-cards {
    gap: 22px;
    margin-top: 26px;
}
.game-card {
    padding: 0;
    overflow: hidden;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.2s;
}
.game-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px #18281808;
    transform: translateY(-3px);
}
.game-card-cover {
    position: relative;
    height: 152px;
    overflow: hidden;
    background: #e9eee4;
    color: #657b56;
    border-bottom: 1px solid var(--border);
}
.game-card:nth-child(4n + 2) .game-card-cover {
    background: #e8ebf0;
    color: #6a7794;
}
.game-card:nth-child(4n + 3) .game-card-cover {
    background: #f1ebe2;
    color: #a08665;
}
.game-card:nth-child(4n + 4) .game-card-cover {
    background: #eee8ed;
    color: #94788c;
}
.game-emblem {
    position: absolute;
    left: 24px;
    top: 24px;
    height: 40px;
    width: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #ffffff80;
    border: 1px solid #ffffff90;
}
.game-emblem .icon {
    height: 23px;
    width: 23px;
}
.game-sequence {
    position: absolute;
    left: 25px;
    bottom: 20px;
    font-size: 11px;
    font-family: Consolas, monospace;
    letter-spacing: 2px;
    opacity: 0.7;
}
.game-motif {
    position: absolute;
    width: 200px;
    height: 170px;
    right: 0;
    top: 0;
    stroke: currentColor;
    stroke-width: 0.7;
}
.game-motif rect:first-child {
    fill: currentColor;
    fill-opacity: 0.06;
}
.game-card:nth-child(2n) .game-motif {
    transform: rotate(90deg);
}
.game-card:nth-child(3n) .game-motif {
    transform: rotate(-30deg);
}
.game-card-body {
    padding: 23px 24px 0;
}
.game-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.game-card p {
    overflow-wrap: anywhere;
    font-size: 11px;
}
.game-card-bottom {
    margin-top: 23px;
    padding: 17px 0;
}
.game-card-bottom .tag {
    padding: 0;
    background: transparent;
    font-size: 11px;
    color: var(--muted);
}
.game-card-bottom .text-link {
    color: var(--text);
    font-size: 12px;
}
.game-card-bottom .text-link .icon {
    margin-left: 12px;
    width: 16px;
}
[data-theme="dark"] .game-card-cover {
    background: #293226;
    color: #9bad88;
}
[data-theme="dark"] .game-card:nth-child(4n + 2) .game-card-cover {
    background: #272e38;
    color: #8a9bb6;
}
[data-theme="dark"] .game-card:nth-child(4n + 3) .game-card-cover {
    background: #373027;
    color: #b7a086;
}
[data-theme="dark"] .game-card:nth-child(4n + 4) .game-card-cover {
    background: #332933;
    color: #ae8ca5;
}
[data-theme="dark"] .game-emblem {
    background: #ffffff08;
    border-color: #ffffff12;
}
/* Login uses one decorative form, without feature copy or mock business data. */
.login-page {
    grid-template-columns: 1.08fr 1fr;
}
.login-art {
    margin: 16px;
    border-radius: 14px;
    padding: 34px 38px;
    background: linear-gradient(145deg, #101f47 0%, #153e9a 60%, #1c5cfb 100%);
    min-height: calc(100vh - 32px);
}
.login-art:before {
    background: radial-gradient(ellipse at 40% 38%, #5597ff35, transparent 70%);
}
.login-art .brand-mark {
    background: #ffffff;
    color: #1c5cfb;
}
.login-art .brand-name {
    font-size: 20px;
    font-weight: 550;
}
.login-sculpture {
    width: 100%;
    max-width: 620px;
    align-self: center;
    margin: -15px 0;
}
.login-sculpture svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(18px 28px 20px #0004);
}
.login-art-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #c1d4ff;
    font-size: 11px;
    letter-spacing: 1px;
}
.login-art-signature > span:first-child {
    font-size: 13px;
    letter-spacing: -0.3px;
}
.login-form {
    max-width: 340px;
}
.login-kicker {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}
.login-form h2 {
    font-size: 36px;
    font-weight: 550;
    letter-spacing: -1.2px;
    margin-bottom: 42px;
}
.login-form h2 > span {
    color: var(--accent);
    margin-left: 4px;
}
.login-form input {
    height: 48px;
    background: var(--surface);
    border-radius: 6px;
}
.login-form label.field {
    margin-bottom: 24px;
}
.remember-row input {
    height: 14px;
}
.login-submit {
    height: 48px;
    border-radius: 6px;
}
.login-theme {
    top: 34px;
    right: 36px;
}
@media (min-width: 1600px) {
    .chart-wrap {
        height: 290px;
    }
    .game-card-cover {
        height: 178px;
    }
    .game-motif {
        right: 12px;
        width: 220px;
        height: 190px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
    }
    .main {
        margin-left: 200px;
    }
    .loading-line {
        left: 200px;
    }
    .content {
        padding: 28px;
    }
    .metric,
    .metric:first-child {
        padding: 22px 18px;
    }
    .metric-value {
        font-size: 27px;
    }
    .topbar {
        padding-inline: 28px;
    }
}
@media (max-width: 960px) {
    .metric:nth-child(3) {
        border-left: 0;
    }
    .metric:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }
    .login-art {
        padding: 30px 24px;
    }
}
@media (max-width: 720px) {
    .sidebar {
        width: 220px;
    }
    .main {
        margin-left: 0;
    }
    .loading-line {
        left: 0;
    }
    .topbar {
        height: 58px;
        padding-inline: 16px;
    }
    .content {
        padding: 24px 16px;
    }
    .page-heading {
        margin-bottom: 24px;
        gap: 18px;
    }
    .page-heading h1 {
        font-size: 24px;
    }
    .filters {
        padding: 0 0 20px;
    }
    .source-note {
        align-items: center;
        flex-wrap: wrap;
    }
    .metric,
    .metric:first-child {
        padding: 20px 16px;
    }
    .metric-value {
        font-size: 26px;
    }
    .metric-top {
        margin-bottom: 16px;
    }
    .metric-foot {
        flex-wrap: wrap;
        font-size: 10px;
    }
    .chart-wrap {
        height: 230px;
    }
    .panel-header {
        padding: 20px 17px 0;
    }
    .game-cards {
        gap: 18px;
        margin-top: 20px;
    }
    .game-card-cover {
        height: 135px;
    }
    .game-card-body {
        padding: 21px 22px 0;
    }
    .login-page {
        display: block;
    }
    .login-art {
        min-height: 0;
        height: 110px;
        margin: 10px;
        padding: 26px;
        border-radius: 10px;
        justify-content: center;
    }
    .login-art .brand {
        margin: 0;
        z-index: 1;
    }
    .login-art-signature {
        display: none;
    }
    .login-sculpture {
        position: absolute;
        width: 210px;
        right: -65px;
        top: -55px;
        opacity: 0.55;
    }
    .login-side {
        min-height: calc(100vh - 130px);
        padding: 72px 26px 80px;
    }
    .login-theme {
        top: 12px;
        right: 20px;
    }
    .login-form h2 {
        font-size: 32px;
        margin-bottom: 32px;
    }
}

/* Element Plus controls and their teleported menus share the console theme. */
:root {
    --el-color-primary: var(--accent);
    --el-color-primary-light-3: color-mix(in srgb, var(--accent) 70%, var(--surface));
    --el-color-primary-light-5: color-mix(in srgb, var(--accent) 50%, var(--surface));
    --el-color-primary-light-7: var(--tint);
    --el-color-primary-light-8: var(--tint);
    --el-color-primary-light-9: var(--tint);
    --el-color-primary-dark-2: var(--accent-hover);
    --el-bg-color: var(--surface);
    --el-bg-color-overlay: var(--surface);
    --el-bg-color-page: var(--bg);
    --el-text-color-primary: var(--text);
    --el-text-color-regular: var(--text);
    --el-text-color-secondary: var(--muted);
    --el-text-color-placeholder: var(--muted);
    --el-text-color-disabled: color-mix(in srgb, var(--muted) 55%, var(--surface));
    --el-border-color: var(--border);
    --el-border-color-light: var(--border);
    --el-border-color-lighter: var(--border);
    --el-border-color-extra-light: var(--border);
    --el-border-color-hover: var(--muted);
    --el-fill-color: var(--surface-2);
    --el-fill-color-light: var(--surface-2);
    --el-fill-color-lighter: var(--surface-2);
    --el-fill-color-extra-light: var(--surface-2);
    --el-fill-color-blank: var(--surface);
    --el-fill-color-dark: var(--border);
    --el-disabled-bg-color: var(--surface-2);
    --el-disabled-text-color: var(--muted);
    --el-disabled-border-color: var(--border);
    --el-border-radius-base: 7px;
    --el-font-size-base: 12px;
    --control-selected-text: #fff;
}
:root[data-theme="dark"] {
    --control-selected-text: #fff;
}
.game-select {
    width: 248px;
}
.sort-select {
    width: 192px;
}
.el-select__wrapper,
.console-date .el-input__wrapper {
    min-height: 39px;
    background: var(--surface);
    border-radius: 7px;
    box-shadow: 0 0 0 1px var(--border) inset;
    padding: 8px 12px;
    font-size: 12px;
    transition:
        box-shadow 0.15s,
        background 0.15s;
}
.el-select__wrapper.is-focused,
.console-date .el-input__wrapper.is-focus {
    box-shadow:
        0 0 0 1px var(--accent) inset,
        0 0 0 3px var(--tint);
}
.el-select .el-select__input,
.console-date .el-input__inner {
    border: 0;
    border-radius: 0;
    padding: 0;
    min-height: 0;
    height: 22px;
    line-height: 22px;
    background: transparent;
    outline: none;
    box-shadow: none;
    color: var(--text);
    font-size: 12px;
}
.el-select .el-select__input {
    height: auto;
}
.el-select .el-select__placeholder {
    color: var(--text);
}
.el-select .el-select__placeholder.is-transparent {
    color: var(--muted);
}
.console-date.el-date-editor.el-input {
    width: 164px;
    height: 39px;
}
.date-fields .console-date {
    flex: 1;
    min-width: 0;
}
.console-date .el-input__prefix {
    color: var(--muted);
}
.console-popper.el-popper {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow:
        0 12px 38px #00000016,
        0 2px 6px #00000008;
    overflow: hidden;
    color: var(--text);
    font-family: inherit;
}
[data-theme="dark"] .console-popper.el-popper {
    box-shadow: 0 12px 38px #0005;
}
.console-popper .el-select-dropdown__list {
    padding: 6px;
}
.console-popper .el-select-dropdown__item {
    margin: 2px 0;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 12px;
    height: 36px;
    line-height: 36px;
}
.console-popper .el-select-dropdown__item.is-hovering {
    background: var(--surface-2);
}
.console-popper .el-select-dropdown__item.is-selected {
    background: var(--tint);
    color: var(--accent);
    font-weight: 600;
}
.game-select-popper .el-select-dropdown__item {
    height: auto;
    min-height: 54px;
    line-height: 20px;
    padding: 8px 30px 8px 12px;
    position: relative;
}
.game-select-popper .el-select-dropdown__item.is-selected:after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 16px;
    font-size: 13px;
}
.game-option-name,
.game-option-id {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-option-id {
    color: var(--muted);
    font-size: 10px;
    line-height: 16px;
    font-family: Consolas, monospace;
    font-weight: 400;
}
.console-popper .el-select-dropdown__empty {
    padding: 20px 14px;
    font-size: 12px;
    color: var(--muted);
}
.console-calendar .el-picker-panel {
    background: var(--surface);
    color: var(--text);
}
.console-calendar .el-date-picker__header {
    margin: 16px 16px 10px;
}
.console-calendar .el-picker-panel__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 26px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 5px;
}
.console-calendar .el-picker-panel__icon-btn:hover {
    background: var(--tint);
    color: var(--accent);
}
.console-calendar .el-date-picker__header-label {
    font-size: 13px;
    font-weight: 600;
}
.console-calendar .el-picker-panel__content {
    margin: 10px 16px 14px;
    width: 290px;
}
.console-calendar th,
.console-calendar td {
    background: transparent;
    text-align: center;
    font-size: 12px;
}
.console-calendar .el-date-table th {
    color: var(--muted);
    padding: 5px 0;
    font-size: 11px;
    border-bottom-color: var(--border);
}
.console-calendar .el-date-table td {
    padding: 4px 0;
}
.console-calendar .el-date-table-cell {
    height: 32px;
    padding: 3px 0;
}
.console-calendar .el-date-table-cell__text {
    width: 28px;
    height: 28px;
    line-height: 28px;
    border-radius: 7px;
}
.console-calendar .el-date-table td.current:not(.disabled) .el-date-table-cell__text {
    background: var(--primary);
    color: var(--control-selected-text);
}
.console-calendar .el-date-table td.available:not(.current):hover .el-date-table-cell__text {
    background: var(--tint);
}
.console-calendar .el-month-table td,
.console-calendar .el-year-table td {
    padding: 16px 0;
}
.console-calendar .el-date-table td.disabled .el-date-table-cell {
    background: transparent;
    opacity: 0.5;
}
@media (max-width: 720px) {
    .filters .game-select,
    .filters .console-date.el-date-editor.el-input {
        width: 100%;
    }
    .date-fields {
        gap: 8px;
    }
    .date-fields .console-date.el-date-editor.el-input {
        width: calc(50% - 14px);
        flex: none;
    }
    .console-calendar.el-popper {
        max-width: calc(100vw - 24px);
    }
    .console-calendar .el-date-picker {
        width: min(322px, calc(100vw - 26px));
    }
    .console-calendar .el-picker-panel__content {
        width: auto;
    }
    .game-select-popper.el-popper {
        max-width: calc(100vw - 32px);
    }
}

/* Dense records: expose every field while keeping row identity during scrolling. */
.record-filters {
    gap: 14px;
}
.record-filters .game-select {
    width: 215px;
}
.record-filters .field > input {
    width: 170px;
}
.record-filters .filter-submit {
    margin-left: 0;
}
.records-scroll {
    max-height: 620px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--muted) var(--surface-2);
}
.records-table {
    min-width: 2050px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}
.records-table th,
.records-table td {
    padding: 13px 14px;
    width: 130px;
    font-size: 11px;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}
.records-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface-2);
    z-index: 2;
    white-space: nowrap;
}
.records-table td {
    background: var(--surface);
}
.records-table tbody tr:hover td {
    background: var(--surface-2);
}
.records-table tbody tr.high-revenue td {
    color: var(--revenue-alert-text);
    background: var(--revenue-alert-bg);
}
.records-table tbody tr.high-revenue:hover td {
    background: var(--revenue-alert-hover);
}
.records-table .column-event_time {
    width: 165px;
}
.records-table .column-open_id {
    width: 270px;
}
.records-table .column-ip {
    width: 155px;
}
.records-table .column-modelx {
    width: 155px;
}
.records-table .column-cost {
    width: 125px;
}
.records-table .column-week_count {
    width: 100px;
}
.records-table .column-event_time,
.records-table .column-open_id {
    position: sticky;
    z-index: 1;
    left: 0;
}
.records-table .column-open_id {
    left: 165px;
    box-shadow: 1px 0 0 var(--border);
}
.records-table thead .column-event_time,
.records-table thead .column-open_id {
    z-index: 3;
}
.records-table .empty-row {
    padding: 38px 20px;
}
.game-cards {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.game-card-body {
    padding: 17px 17px 0;
}
.game-card-heading {
    display: flex;
    align-items: center;
    gap: 11px;
}
.compact-game-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    background: var(--tint);
    color: var(--accent);
    border-radius: 10px;
}
.compact-game-icon .icon {
    width: 20px;
    height: 20px;
}
.game-card-title {
    min-width: 0;
}
.game-card h3 {
    font-size: 13px;
    margin-bottom: 6px;
}
.game-card p {
    font-size: 10px;
}
.game-card-bottom {
    margin-top: 15px;
    padding: 11px 0;
}
.game-card-bottom .tag,
.game-card-bottom .text-link {
    font-size: 10px;
}
.game-card-bottom .text-link {
    padding-block: 4px;
}
@media (max-width: 720px) {
    .record-filters .game-select,
    .record-filters .field > input {
        width: 100%;
    }
    .records-scroll {
        max-height: 520px;
    }
    .records-table .column-event_time,
    .records-table .column-open_id {
        position: static;
        box-shadow: none;
    }
    .records-table thead .column-event_time,
    .records-table thead .column-open_id {
        position: sticky;
        left: auto;
    }
    .game-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.record-filters {
    display: grid;
    grid-template-columns: minmax(160px, 1.3fr) 150px repeat(3, minmax(110px, 1fr)) auto;
}
.record-filters .field {
    min-width: 0;
}
.record-filters .game-select,
.record-filters .field > input,
.record-filters .console-date.el-date-editor.el-input {
    width: 100%;
}
@media (min-width: 721px) and (max-width: 1100px) {
    .record-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .record-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .record-filters .field:nth-child(-n + 3),
    .record-filters .filter-submit {
        grid-column: 1 / -1;
    }
}
@media (max-width: 720px) {
    .record-filters + .source-note .tag {
        display: inline-flex;
        margin-left: 0;
    }
}

/* Centered sign-in, shared by both themes. */
.login-page.login-centered {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 64px 20px;
    position: relative;
    isolation: isolate;
    background: radial-gradient(ellipse at 50% 10%, #dce7ff 0%, transparent 52%), #f5f7fc;
}
.login-centered::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(#6885ba30 0.8px, transparent 0.8px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, #0009, transparent 80%);
}
.login-centered .login-side {
    width: 100%;
    min-height: 0;
    padding: 0;
    position: static;
}
.login-centered .login-form {
    width: 100%;
    max-width: 444px;
    padding: 40px;
    border: 1px solid #fff;
    border-radius: 22px;
    background: var(--surface);
    box-shadow:
        0 2px 5px #1d3f8310,
        0 24px 70px -24px #1d3f8330,
        0 0 0 1px #dbe3f066;
}
.login-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
}
.login-symbol {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #3978ff, #0047f9);
    box-shadow:
        inset 0 1px 1px #ffffff66,
        0 5px 12px #1c5cfb26;
}
.login-symbol .icon {
    width: 25px;
    height: 25px;
}
.login-wordmark {
    color: var(--text);
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -1px;
}
.login-heading {
    margin: 32px 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    text-align: center;
}
.login-centered .login-heading h2 {
    font-size: 25px;
    letter-spacing: -0.5px;
    font-weight: 600;
    margin: 0 0 10px;
}
.login-heading > span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 1px;
}
.login-centered .login-form label.field {
    font-size: 12px;
    font-weight: 500;
    gap: 9px;
    margin-bottom: 21px;
}
.login-centered .login-form input:not([type="checkbox"]) {
    height: 49px;
    border-radius: 9px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding-left: 14px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
.login-centered .login-form input:not([type="checkbox"]):focus {
    outline: none;
    background: var(--surface);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--tint);
}
.login-centered .remember-row {
    margin: 4px 0 26px;
    font-size: 11px;
}
.login-centered .remember-row input {
    accent-color: var(--primary);
}
.login-centered .login-submit {
    height: 49px;
    border-radius: 9px;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 5px 14px #1c5cfb24;
}
.login-centered .login-submit .icon {
    width: 17px;
    height: 17px;
}
.login-centered .login-theme {
    position: fixed;
    top: 26px;
    right: 28px;
    border-radius: 12px;
    background: var(--surface);
    border-color: var(--border);
}
:root[data-theme="dark"] .login-page.login-centered {
    background: radial-gradient(ellipse at 50% 0%, #1d3260, transparent 60%), #0d121d;
}
:root[data-theme="dark"] .login-centered .login-form {
    background: #191f2bef;
    border-color: #34405a;
    box-shadow:
        0 24px 70px -20px #0008,
        inset 0 1px 0 #ffffff06;
}
@media (max-width: 480px) {
    .login-page.login-centered {
        padding: 76px 20px;
    }
    .login-centered .login-form {
        padding: 32px 26px;
        border-radius: 18px;
    }
    .login-wordmark {
        font-size: 23px;
    }
    .login-centered .remember-row {
        gap: 10px;
    }
    .login-centered .login-theme {
        top: 18px;
        right: 20px;
    }
}
