:root {
    --primary: #409eff;
    --primary-dark: #337ecc;
    --success: #67c23a;
    --warning: #e6a23c;
    --danger: #f56c6c;
    --info: #909399;
    --text: #303133;
    --text-2: #606266;
    --text-3: #909399;
    --bg: #f8f9fa;
    --line: #e4e7ed;
    --line-2: #dcdfe6;
    --fill: #f5f7fa;
    --shadow: 0 0 12px rgba(0, 0, 0, .12);
    --sidebar-w: 240px;
    --header-h: 64px;
    --font: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    --scrollbar-thumb: rgba(144, 147, 153, .3);
    --scrollbar-thumb-hover: rgba(144, 147, 153, .5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
    transition: background .3s;
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) #f5f5f5; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
.ico { width: 1em; height: 1em; display: block; flex: 0 0 auto; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    border-right: 1px solid var(--line);
    box-shadow: 2px 0 12px rgba(0, 0, 0, .1);
    z-index: 20;
    display: flex;
    flex-direction: column;
    transition: width .3s cubic-bezier(.4, 0, .2, 1);
}
.logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    background: linear-gradient(135deg, #f8f9fa 0%, #409eff 100%);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    position: relative;
}
.logo .ico {
    width: 24px;
    height: 24px;
    font-size: 24px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .2));
}
.logo h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    white-space: nowrap;
}
.sidebar-scroll {
    flex: 1;
    overflow: auto;
    padding: 20px 0;
    height: calc(100vh - 64px);
}
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
}
/* role menus: driven by html[data-menu] from menu-boot.js (avoid flash) */
ul.menu > li[data-need] { display: none; }
html[data-menu="admin"] ul.menu > li[data-need="admin"],
html[data-menu="super"] ul.menu > li[data-need="admin"],
ul.menu > li[data-need].is-allowed { display: list-item; }
html[data-menu="admin"] ul.menu > li[data-need="super"],
html[data-menu="super"] ul.menu > li[data-need="super"]:not(.is-allowed) { display: none; }
.menu-item {
    margin: 2px 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 48px;
    flex-shrink: 0;
}
.menu-item .ico {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    font-size: 18px;
}
.menu-item span { font-weight: 500; }
.menu-item:hover { background: rgba(64,158,255,.08); color: var(--primary); }
.menu-item.is-active { background: var(--primary); color: #fff; font-weight: 600; }
.menu-item.is-active span { font-weight: 600; color: #fff; }
/* hide role menus until Agent.applyShell grants .is-allowed (no flash) */
.menu > li[data-need] { display: none; }
.menu > li[data-need].is-allowed { display: list-item; }
body.is-folded { --sidebar-w: 64px; }
body.is-folded .logo h2,
body.is-folded .menu-item span { display: none; }
body.is-folded .logo .ico {
    font-size: 28px;
    width: 28px;
    height: 28px;
    margin-right: 0;
}
body.is-folded .menu-item {
    justify-content: center;
    padding: 0;
    margin: 2px 4px;
    width: auto;
}
body.is-folded .menu-item .ico {
    margin-right: 0;
    width: 22px;
    height: 22px;
    font-size: 22px;
}

.shell {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    transition: margin-left .3s;
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(64,158,255,.01) 100%);
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    height: var(--header-h);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, .95) 0%, rgba(64, 158, 255, .02) 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    backdrop-filter: blur(12px);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}
.header-right { display: flex; align-items: center; }
.header-toolbar { display: flex; align-items: center; gap: 16px; }
.collapse-btn {
    width: 44px;
    height: 44px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(64, 158, 255, .1);
    background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.collapse-btn .ico { width: 18px; height: 18px; }
.collapse-btn:hover {
    background: linear-gradient(135deg, rgba(64,158,255,.12), rgba(64,158,255,.06));
    border-color: rgba(64,158,255,.3);
    color: var(--primary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(64,158,255,.25);
}
.crumb { display: flex; align-items: center; gap: 0; color: var(--text-2); font-size: 14px; font-weight: 500; }
.crumb .is-link { color: var(--primary); font-weight: 600; }
.crumb .is-link:hover { color: #337ecc; }
.crumb-sep { margin: 0 9px; color: var(--text-3); font-weight: 700; }
.crumb > span:last-child { color: var(--text-2); font-weight: 400; }

.balance-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-2);
}
.balance-highlight {
    position: relative;
    overflow: hidden;
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px solid rgba(82, 155, 46, .3);
    background: linear-gradient(135deg, #67c23a, #85ce61, #95d475);
    box-shadow: 0 4px 12px rgba(103, 194, 58, .3), inset 0 1px 3px rgba(255,255,255,.2);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.balance-highlight:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .8s ease;
}
.balance-highlight:hover:before { left: 100%; }
.balance-highlight:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(103, 194, 58, .4), inset 0 1px 3px rgba(255,255,255,.2);
    border-color: rgba(82, 155, 46, .5);
}
.balance-highlight .ico {
    width: 14px;
    height: 14px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.balance-text {
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
    white-space: nowrap;
    letter-spacing: .2px;
}

.userbox { position: relative; }
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(64, 158, 255, .1);
    background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.05));
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.user-info:hover {
    background: linear-gradient(135deg, rgba(64,158,255,.1), rgba(64,158,255,.05));
    border-color: rgba(64,158,255,.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64,158,255,.2);
}
.user-info:hover .username,
.user-info:hover .arrow-down { color: var(--primary); }
.user-info:hover .arrow-down { transform: rotate(180deg); }
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #c0c4cc;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 32px;
}
.avatar .ico { width: 16px; height: 16px; }
.username {
    font-size: 14px;
    color: var(--text-2);
    font-weight: 500;
    transition: color .3s ease;
}
.arrow-down {
    display: inline-flex;
    font-size: 12px;
    color: var(--text-3);
    transition: all .3s ease;
}
.arrow-down .ico { width: 12px; height: 12px; }

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 148px;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    z-index: 30;
}
.dropdown:before {
    content: "";
    position: absolute;
    top: -6px;
    right: 28px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.dropdown.is-open { display: block; }
.dropdown-item {
    width: calc(100% - 16px);
    margin: 2px 8px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    text-decoration: none;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    box-sizing: border-box;
}
.dropdown-item .ico { width: 14px; height: 14px; flex: 0 0 14px; }
.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(64,158,255,.1), rgba(64,158,255,.05));
    color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(64,158,255,.15);
}
.dropdown-item:hover .ico { transform: scale(1.1); }
.dropdown-divider {
    height: 0;
    margin: 8px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 18px;
}
.icon-btn:hover { background: var(--fill); color: var(--primary); }
.main {
    padding: 24px;
    min-height: calc(100vh - var(--header-h));
    background: #f8f9fa;
}
.main-narrow .page-block { max-width: 960px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.3; }
.page-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.home-page { padding: 0; color: var(--text); }
.home-page .section-head {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}
.home-page .page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #303133;
}
.home-page .page-sub {
    margin: 8px 0 0;
    color: #606266;
    font-size: 14px;
    line-height: 1.6;
}
.home-boards {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    margin-bottom: 16px;
}
.home-boards .card {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.home-notice h3,
.home-ad h3 {
    margin: 8px 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}
.home-board-body {
    white-space: normal;
    color: #606266;
    line-height: 1.7;
    font-size: 14px;
}
.home-ad-img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 8px 0;
    background: #f5f7fa;
}
@media (max-width: 900px) {
    .home-boards { flex-wrap: wrap; }
    .home-boards .card { flex: 1 1 100%; }
}
.dashboard { padding: 0; color: var(--text); }
.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.dashboard-header h1 { margin: 0 0 4px; font-size: 22px; font-weight: 650; }
.dashboard-header p { margin: 0; color: var(--text-2); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg-ctrl {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 2px;
    background: #f5f7fa;
    border-radius: 4px;
}
.seg-ctrl button {
    height: 28px;
    padding: 0 11px;
    border: 0;
    background: transparent;
    color: #606266;
    font-size: 14px;
    border-radius: 2px;
}
.seg-ctrl button.is-active {
    background: #409eff;
    color: #fff;
}

.btn {
    height: 32px;
    padding: 0 15px;
    border-radius: 4px;
    border: 1px solid var(--line-2);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn:hover { color: var(--primary); border-color: #c6e2ff; background: #ecf5ff; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: #66b1ff; border-color: #66b1ff; color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #85ce61; border-color: #85ce61; color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-warning:hover { background: #ebb563; border-color: #ebb563; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #f78989; border-color: #f78989; color: #fff; }
.btn-info { background: #909399; border-color: #909399; color: #fff; }
.btn-info:hover { background: #a6a9ad; border-color: #a6a9ad; color: #fff; }
.btn-text, .btn-link { background: transparent; border-color: transparent; color: #909399; }
.btn-text:hover, .btn-link:hover { color: #409eff; background: transparent; }
.btn-circle { width: 36px; height: 36px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { height: 24px; padding: 0 10px; font-size: 12px; }
.btn .ico { font-size: 14px; }

.input, .select, .field input, .field select, .field textarea {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
.input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; color: var(--text-2); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { height: auto; padding: 8px 12px; }
.field input:disabled { background: var(--fill); color: var(--text-3); }

.page-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.page-header-simple h1 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
}
.page-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.page-header-simple h1 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
}
.filter-bar {
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    padding: 18px 20px 2px;
    display: flex;
    align-items: center;
    gap: 12px 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.filter-item { display: flex; align-items: center; gap: 8px; color: var(--text); margin-bottom: 16px; }
.filter-item .input, .filter-item .select { width: 200px; }
.filter-bar .btn { margin-bottom: 16px; }
.toolbar { display: flex; gap: 6px; margin-bottom: 8px; }
.advanced {
    display: none;
    width: 100%;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}
.advanced.is-open { display: flex; gap: 12px; flex-wrap: wrap; }

.panel {
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    padding: 16px;
    min-height: 100%;
}
.table-wrap { width: 100%; overflow: auto; }
table.data.wide { min-width: 1100px; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid #ebeef5;
}
table.data th {
    background: #fafafa;
    color: var(--text-3);
    font-weight: 500;
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    white-space: nowrap;
}
table.data th:last-child { border-right: 0; }
table.data td {
    padding: 12px 10px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    color: var(--text);
    white-space: nowrap;
}
table.data td:last-child { border-right: 0; }
table.flow td:nth-child(2) {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}
table.data tr:hover td { background: #f5f7fa; }
.linkish { color: var(--primary); background: none; border: 0; padding: 0; font-size: 13px; }
.money-red { color: var(--danger); font-weight: 600; }
.money-green { color: var(--success); font-weight: 600; }
.money-orange { color: var(--warning); font-weight: 600; }
.muted { color: var(--text-3); }
.ops { display: flex; gap: 6px; }

.tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 12px;
    line-height: 1;
}
.tag-success { color: #67c23a; background: #f0f9eb; border-color: #e1f3d8; }
.tag-warning { color: #e6a23c; background: #fdf6ec; border-color: #faecd8; }
.tag-danger { color: #f56c6c; background: #fef0f0; border-color: #fde2e2; }
.tag-primary { color: #409eff; background: #ecf5ff; border-color: #d9ecff; }
.tag-info { color: #909399; background: #f4f4f5; border-color: #e9e9eb; }

.pager {
    position: fixed;
    right: 24px;
    bottom: 16px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    color: var(--text-2);
    font-size: 14px;
}
.pager > .pager-nav,
.pager > .pager-num {
    margin: 0;
}
.pager-total { color: #606266; font-weight: 500; white-space: nowrap; }
.pager-sizes {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 8px;
}
.pager-size-select {
    appearance: none;
    -webkit-appearance: none;
    height: 32px;
    min-width: 110px;
    padding: 0 28px 0 12px;
    border: 0;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 0 1px #dcdfe6 inset;
    color: #606266;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}
.pager-size-select:hover { box-shadow: 0 0 0 1px #c0c4cc inset; }
.pager-size-select:focus { box-shadow: 0 0 0 1px var(--primary) inset; }
.pager-size-caret {
    position: absolute;
    right: 8px;
    pointer-events: none;
    color: #a8abb2;
    display: inline-flex;
}
.pager-size-caret .ico { width: 12px; height: 12px; }
.pager-sizes-dropup { position: relative; }
.pager-size-menu {
    position: absolute;
    left: 0;
    min-width: 100%;
    bottom: calc(100% + 4px);
    z-index: 100;
    margin: 0;
    padding: 4px 0;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    box-sizing: border-box;
}
.pager-size-menu-item {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px 12px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    box-sizing: border-box;
}
.pager-size-menu-item:hover,
.pager-size-menu-item.is-active {
    background: #409eff;
    color: #fff;
}

.pager-size, .pager-num, .pager-nav {
    height: 32px;
    min-width: 32px;
    padding: 0 4px;
    border: 1px solid #dcdfe6;
    background: #fff;
    border-radius: 4px;
    color: #606266;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.pager-nav {
    background: #fff;
    border-radius: 4px;
    color: #606266;
}
.pager-nav:disabled, .pager-nav[disabled] {
    opacity: .45;
    cursor: not-allowed;
    color: #c0c4cc;
    background: #fff;
    border-color: #e4e7ed;
}
.pager-num.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pager-num:hover:not(:disabled),
.pager-nav:hover:not(:disabled):not([disabled]) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pager-num.is-active:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
/* page number buttons: spacing like fn */
.pager [id$="-pager-nums"],
.pager [id$="pager-nums"],
#ck-pager-nums,
#aa-pager-nums,
#game-pager-nums,
#user-pager-nums {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pager-gap { color: #a8abb2; padding: 0 2px; }
.pager-jump {
    display: inline-flex;
    align-items: center;
    margin-left: 16px;
    gap: 0;
    color: #606266;
    white-space: nowrap;
}
.pager-input {
    width: 50px;
    height: 32px;
    border: 1px solid var(--line-2);
    border-radius: 4px;
    text-align: center;
    margin: 0 8px;
    color: #606266;
}
.pager-next .ico { transform: rotate(180deg); }
.pager .ico { font-size: 12px; width: 14px; height: 14px; }

.stats-row,
.section-row { display: grid; gap: 12px; margin-bottom: 12px; }
.stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-row.ratio-16-8 { grid-template-columns: minmax(0, 16fr) minmax(0, 8fr); }
.section-row.ratio-14-10 { grid-template-columns: minmax(0, 14fr) minmax(0, 10fr); }
.section-row.ratio-12-12 { grid-template-columns: minmax(0, 12fr) minmax(0, 12fr); }

.metric-tile {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 8px;
}
.tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}
.tile-icon .ico { width: 22px; height: 22px; }
.user-icon { background: #2563eb; }
.key-icon { background: #0f766e; }
.active-icon { background: #16a34a; }
.money-icon { background: #9333ea; }
.tile-value { font-size: 24px; font-weight: 700; line-height: 1.1; }
.tile-value.money { font-size: 21px; }
.tile-label { margin-top: 4px; color: var(--text-2); font-size: 13px; }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.panel-header.compact { margin-bottom: 10px; }
.panel-header h2 { margin: 0; font-size: 16px; font-weight: 650; }
.panel-header span { display: block; margin-top: 3px; color: var(--text-2); font-size: 12px; }

.operation-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.operation-item {
    min-height: 86px;
    padding: 12px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.operation-item .ico { color: var(--primary); font-size: 19px; width: 19px; height: 19px; }
.operation-item span,
.today-list span,
.inventory-grid span { color: var(--text-2); font-size: 12px; }
.operation-item strong { font-size: 18px; }
.operation-item.emphasis {
    border-color: rgba(64, 158, 255, .45);
    background: rgba(64, 158, 255, .06);
}

.today-list,
.inventory-grid { display: grid; gap: 8px; }
.today-list div,
.inventory-grid div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-2);
    padding: 8px 0;
}
.today-list div:last-child,
.inventory-grid div:last-child { border-bottom: 0; }
.today-list strong,
.inventory-grid strong { font-size: 15px; }
.inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

.trend-list { display: grid; gap: 10px; }
.trend-row {
    display: grid;
    grid-template-columns: 52px 1fr 86px;
    gap: 10px;
    align-items: center;
}
.trend-date { font-size: 12px; color: var(--text-2); }
.trend-bars { display: grid; gap: 5px; }
.bar-line {
    display: grid;
    grid-template-columns: 36px 1fr 34px;
    gap: 8px;
    align-items: center;
}
.bar-line span,
.bar-line b,
.trend-money { font-size: 12px; }
.bar-line > div {
    height: 8px;
    background: #f0f2f5;
    border-radius: 4px;
    overflow: hidden;
}
.generate-bar,
.activate-bar {
    display: block;
    height: 8px;
    border-radius: 4px;
}
.generate-bar { background: #2563eb; }
.activate-bar { background: #16a34a; }
.trend-money { text-align: right; font-weight: 650; }

.empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--text-3);
}

@media (max-width: 1200px) {
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .section-row.ratio-16-8,
    .section-row.ratio-14-10,
    .section-row.ratio-12-12 { grid-template-columns: 1fr; }
    .operation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .dashboard-header { flex-direction: column; }
    .operation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inventory-grid { grid-template-columns: 1fr; }
}

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.game-card {
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
    transition: transform .3s, box-shadow .3s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }
.game-cover {
    height: 140px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex: 0 0 auto;
}
.game-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-height: 0; flex: 1; }
.game-body strong, .game-body .en {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-body .en { color: var(--text-3); font-size: 12px; }
.game-meta { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.game-meta b { color: var(--text); }
.game-actions { display: flex; gap: 8px; margin-top: auto; }

.soon-page { padding: 0; }
.page-header { margin: 0 0 24px; }
.page-header h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
}
.page-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-2);
}
.development-notice {
    display: flex;
    justify-content: center;
    align-items: center;
}
.notice-card {
    width: 100%;
    max-width: 600px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    text-align: center;
}
.notice-content { padding: 40px 20px; }
.notice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 0 20px;
    color: var(--warning);
    font-size: 64px;
    line-height: 64px;
}
.notice-icon .ico { width: 64px; height: 64px; }
.notice-content h2 {
    margin: 0 0 16px;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}
.notice-content > p {
    margin: 0 0 24px;
    font-size: 16px;
    color: var(--text-2);
}
.el-divider {
    display: block;
    height: 1px;
    margin: 24px 0;
    background: var(--line);
    border: 0;
}
.planned-features {
    margin: 20px 0 0;
    text-align: left;
}
.planned-features h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.planned-features ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: disc;
}
.planned-features li {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-2);
}

.soon {
    max-width: 640px;
    margin: 48px auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 36px 32px;
    text-align: center;
}
.soon h1 { margin: 0 0 8px; font-size: 22px; }
.soon .lead { color: var(--text-3); margin: 0 0 18px; }
.soon h2 { margin: 0 0 8px; font-size: 18px; color: var(--warning); }
.soon ul { text-align: left; display: inline-block; color: var(--text-2); line-height: 1.9; }

.stack { display: flex; flex-direction: column; gap: 20px; max-width: 960px; }
.settings-page {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.settings-header { margin: 0 0 20px; }
.settings-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
}
.page-description {
    margin: 0;
    font-size: 16px;
    color: var(--text-3);
}
.api-key-card { margin-bottom: 20px; }
.api-key-content { min-height: 200px; }
.api-key-exists { display: flex; flex-direction: column; gap: 20px; }
.card-header h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}
.card-description {
    margin: 0;
    font-size: 14px;
    color: var(--text-2);
}
.key-display { display: flex; flex-direction: column; gap: 8px; }
.key-label { font-weight: 600; color: var(--text); }
.key-input-group {
    display: flex;
    width: 100%;
    max-width: 100%;
}
.key-input-group .key-input {
    flex: 1;
    height: 40px;
    border: 1px solid var(--line-2);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 12px;
    background: #fff;
}
.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: 0 4px 4px 0;
    background: var(--fill);
    color: var(--text-2);
    white-space: nowrap;
}
.toggle-btn .ico { width: 14px; height: 14px; }
.key-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.key-actions .btn .ico { width: 14px; height: 14px; margin-right: 4px; }
.security-alert {
    margin-top: 0;
    padding: 12px 16px;
    background: #fdf6ec;
    border: 1px solid #faecd8;
    border-radius: 4px;
    color: #e6a23c;
}
.el-alert__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #e6a23c;
    margin-bottom: 6px;
}
.el-alert__description p {
    margin: 4px 0;
    font-size: 13px;
    color: #e6a23c;
    line-height: 1.5;
}
.api-permissions {
    padding: 16px;
    background: #f5f7fa;
    border: 1px solid #ebeef5;
    border-radius: 6px;
}
.api-permissions h4 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.permission-list { display: flex; flex-wrap: wrap; gap: 10px; }
.el-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 12px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid transparent;
}
.el-tag .ico { width: 14px; height: 14px; }
.el-tag--success {
    background: #f0f9eb;
    border-color: #e1f3d8;
    color: #67c23a;
}
.api-docs-card { margin-bottom: 20px; }
.api-docs-content { display: flex; flex-direction: column; gap: 20px; }
.api-docs-content h4,
.doc-h {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.api-endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--fill);
    border-radius: 4px;
    border: 1px solid var(--line);
}
.api-endpoint b { color: var(--primary); }
.api-endpoint span { flex: 1; word-break: break-all; color: var(--primary); }
.block-hd h3 { margin: 0; font-size: 18px; font-weight: 600; }
.block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
}
.block-hd { padding: 16px 20px 0; }
.block-hd h2 { margin: 0; font-size: 16px; }
.block-hd p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }
.block-bd { padding: 16px 20px 20px; }
.key-line { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; }
.key-line span { white-space: nowrap; font-weight: 600; }
.key-line input { flex: 1; letter-spacing: 1px; }
.alert {
    background: #fdf6ec;
    border: 1px solid #faecd8;
    color: #e6a23c;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.alert b { display: block; margin-bottom: 6px; }
.alert ul { margin: 0; padding-left: 18px; }
.perm {
    background: #f5f7fa;
    border-radius: 4px;
    padding: 12px 14px;
}
.perm h3 { margin: 0 0 8px; font-size: 14px; }
.perm-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button {
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tabs button.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }
.doc-h { margin: 16px 0 8px; font-size: 14px; }
.codebox {
    position: relative;
    background: var(--fill);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 72px 12px 14px;
    overflow: auto;
}
.codebox pre { margin: 0; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.codebox .btn { position: absolute; top: 8px; right: 8px; }
.method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--fill);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
}
.method { position: relative; padding-right: 72px; }
.method b { color: var(--primary); }
.method .btn { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

.mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.mask[hidden] { display: none; }
.field[hidden] { display: none !important; }
.dialog {
    width: 500px;
    max-width: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 12px 32px 4px rgba(0, 0, 0, .04), 0 8px 20px rgba(0, 0, 0, .08);
    padding: 0;
}
.dialog-pwd { width: 400px; }
.dialog-sm { width: 420px; }
.dialog-batch { width: 600px; max-width: calc(100vw - 32px); }
.dialog-hd, .dialog-ft { display: flex; align-items: center; padding: 16px; }
.dialog-hd { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.dialog-hd-plain { border-bottom: 0; padding-bottom: 16px; }
.dialog-hd h3 { margin: 0; font-size: 18px; font-weight: 500; color: var(--text); }
.dialog-bd { padding: 10px 16px 4px; }
.dialog-ft { justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.dialog-ft-plain { border-top: 0; padding-top: 10px; padding-bottom: 16px; }

.msgbox-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}
.msgbox-mask[hidden] { display: none; }
.msgbox {
    width: 420px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 12px 32px 4px rgba(0, 0, 0, .04), 0 8px 20px rgba(0, 0, 0, .08);
}
.msgbox-hd {
    position: relative;
    padding: 0 28px 12px 0;
}
.msgbox-title {
    font-size: 18px;
    font-weight: 400;
    color: #303133;
    line-height: 1;
}
.msgbox-close {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #909399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.msgbox-close:hover { color: var(--primary); }
.msgbox-close .ico { width: 16px; height: 16px; }
.msgbox-bd { padding: 10px 0; }
.msgbox-bd .msgbox-status {
    float: left;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.msgbox-bd .msgbox-status .ico { width: 24px; height: 24px; }
.msgbox-warning { color: #e6a23c; }
.msgbox-message {
    margin-left: 36px;
    color: #606266;
    font-size: 14px;
    line-height: 24px;
}
.msgbox-message p { margin: 0; }
.msgbox-ft {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}
.msgbox-ft .btn {
    height: 32px;
    padding: 8px 15px;
    line-height: 1;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dt-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 220px;
}
.dt-trigger .dt-prefix {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8abb2;
    pointer-events: none;
    z-index: 1;
    display: inline-flex;
}
.dt-trigger .dt-prefix .ico { width: 14px; height: 14px; }
.dt-trigger .dt-input {
    width: 100%;
    padding-left: 30px;
    cursor: pointer;
    background: #fff;
}
.dt-trigger.is-open .dt-input { border-color: var(--primary); }
.dt-panel {
    position: absolute;
    z-index: 60;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0, 0, 0, .12);
    padding: 8px 12px 4px;
    display: none;
}
.dt-panel.is-open { display: block; }
.dt-panel-inner {
    display: flex;
    align-items: stretch;
}
.dt-cal {
    width: 280px;
    padding-right: 8px;
}
.dt-cal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 32px;
    margin-bottom: 4px;
}
.dt-ym {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #303133;
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
}
.dt-ym .ico { width: 12px; height: 12px; color: #606266; }
.dt-nav {
    display: inline-flex;
    flex-direction: column;
    gap: 0;
}
.dt-nav button {
    width: 20px;
    height: 14px;
    border: 0;
    background: transparent;
    color: #606266;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.dt-nav button:hover { color: var(--primary); }
.dt-nav .ico { width: 12px; height: 12px; }
.dt-weeks, .dt-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}
.dt-weeks span {
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    color: #606266;
}
.dt-days button {
    height: 28px;
    margin: 2px 0;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: #606266;
    font-size: 12px;
    padding: 0;
}
.dt-days button:hover { color: var(--primary); }
.dt-days button.is-other { color: #c0c4cc; }
.dt-days button.is-selected {
    background: var(--primary);
    color: #fff;
    border: 2px solid #1d39c4;
    font-weight: 600;
}
.dt-days button.is-today:not(.is-selected) {
    color: var(--primary);
    font-weight: 600;
}
.dt-cal-ft {
    display: flex;
    justify-content: space-between;
    padding: 6px 0 4px;
    border-top: 1px solid #e4e7ed;
    margin-top: 4px;
}
.dt-cal-ft button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    padding: 0;
    height: 24px;
}
.dt-cal-ft button:hover { color: var(--primary-dark); }
.dt-time {
    display: flex;
    border-left: 1px solid #e4e7ed;
    padding-left: 8px;
    width: 110px;
}
.dt-time-col {
    flex: 1;
    height: 224px;
    overflow-y: auto;
    text-align: center;
}
.dt-time-col button {
    display: block;
    width: 100%;
    height: 28px;
    border: 0;
    background: transparent;
    color: #606266;
    font-size: 12px;
    padding: 0;
    border-radius: 2px;
}
.dt-time-col button:hover { background: #f5f7fa; }
.dt-time-col button.is-selected {
    background: var(--primary);
    color: #fff;
}
.dt-time-col::-webkit-scrollbar { width: 4px; }
.dt-time-col::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 2px;
}
.field-h {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 18px;
}
.field-h .field-label {
    flex: 0 0 auto;
    width: 100px;
    text-align: right;
    padding-right: 12px;
    line-height: 32px;
    color: #606266;
    font-size: 14px;
    box-sizing: border-box;
}
.field-h.is-required .field-label::before {
    content: "*";
    color: #f56c6c;
    margin-right: 4px;
}
.field-h .field-content { flex: 1 1 auto; min-width: 0; }
.field-h .field-content input,
.field-h .field-content select,
.field-h .field-content textarea { width: 100%; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #409eff 0%, #ffffff 100%);
    font-family: Avenir, Helvetica, Arial, sans-serif;
}
.login-box {
    width: 400px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
    padding: 40px;
    color: #303133;
    position: relative;
}
.login-header { margin-bottom: 32px; text-align: center; }
.login-box h1 { margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: normal; color: #303133; }
.login-box .hello { margin: 0; color: #606266; font-size: 14px; }
.login-form { margin-bottom: 24px; }
.login-item { position: relative; margin: 0 0 18px; width: 100%; }
.login-field {
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    margin: 0;
    padding: 12px 16px;
    background: #f5f7fa;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.login-field:hover { border-color: #409eff; }
.login-field:focus-within {
    background: #f5f7fa;
    border-color: #409eff;
    box-shadow: rgba(102, 192, 244, 0.2) 0 0 0 2px;
}
.login-item.is-error .login-field,
.login-item.is-error .login-field:hover,
.login-item.is-error .login-field:focus-within {
    background: #f5f7fa;
    border-color: #f56c6c !important;
    box-shadow: none !important;
}
.login-field-error {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 2px 0 0;
    color: #f56c6c !important;
    font-size: 12px;
    line-height: 12px;
    text-align: left;
    display: none;
    pointer-events: none;
    box-sizing: border-box;
}
.login-item.is-error .login-field-error { display: block !important; }
.login-field .affix {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    color: #a8abb2;
    border: 0;
    background: transparent;
    padding: 0;
}
.login-field .affix svg { width: 14px; height: 14px; display: block; }
.login-field input {
    flex: 1;
    width: 0;
    height: 40px;
    margin: 0 0 0 8px;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #303133;
    font-size: 14px;
    line-height: 40px;
    font-family: inherit;
}
.login-field input::placeholder { color: #a8abb2; }
.login-field .affix-eye { visibility: hidden; }
.login-field:focus-within .affix-eye { visibility: visible; }
.login-submit {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0 0 18px;
    border: 0;
    border-radius: 4px;
    background: #409eff;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
}
.login-submit:hover { background: #66b1ff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(102, 192, 244, .3); }
.login-submit:disabled,
.login-submit.is-loading {
  pointer-events: none;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.login-foot { margin: 0; padding-top: 20px; border-top: 1px solid #dcdfe6; text-align: center; }
.login-foot p { margin: 0; color: #909399; font-size: 12px; line-height: normal; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    body.nav-open .sidebar { transform: none; width: 280px; }
    .shell { margin-left: 0; }
}

/* === USERS PAGE (from reference) === */
.users-page { height: 100vh; overflow: hidden; position: relative; }

.users-container { position: fixed; top: 64px; right: 0px; bottom: 0px; padding: 20px; background-color: #f8f9fa; transition: left 0.3s; display: flex; flex-direction: column; overflow: hidden; }

.users-page .page-header { flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

.users-page .page-header h1 { margin: 0px; color: #303133; font-size: 22px; }

.users-page .search-card { border: 1px solid #e4e7ed; box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px; }

.users-page .search-section { flex-shrink: 0; margin-bottom: 8px; }

.users-page .table-actions-section { display: flex; justify-content: space-between; align-items: center; padding: 6px 0px; margin-bottom: 8px; }

.users-page .table-actions { display: flex; gap: 6px; }

.users-page .sort-status { display: flex; align-items: center; font-size: 14px; color: #606266; }

.users-page .account-open-cost-tip { margin-top: 6px; font-size: 12px; line-height: 18px; color: #606266; }

.users-page .table-section { flex: 1 1 0%; display: flex; flex-direction: column; overflow: hidden; margin-bottom: 80px; margin-top: 0px; padding: 0px; }

.users-page .table-container { flex: 1 1 0%; background-color: #fff; border-radius: 0px; border-width: medium; border-style: none; border-color: currentcolor; border-image: initial; box-shadow: none; overflow: auto; display: flex; flex-direction: column; margin: 0px; padding: 0px; }

.users-page .unified-table { display: grid; grid-template-columns: 80px 140px 110px 90px 120px 120px 100px 90px 120px 120px 140px 180px; border-collapse: collapse; border: 1px solid #e4e7ed; margin: 0px; padding: 0px; min-height: min-content; }

.users-page .unified-table.agent-users-table { grid-template-columns: 100px 140px 110px 110px 100px 100px 90px minmax(200px, 1fr); width: 100%; }

.users-page .table-row { display: contents; }

.users-page #users-table-body { display: contents; }

.users-page .table-header-row .table-cell { background-color: #f8f9fa; font-weight: 600; color: #303133; border-top: 1px solid #e4e7ed; }

.users-page .data-row .table-cell { background-color: #fff; }

.users-page .data-row:hover .table-cell { background-color: #f5f7fa; }

.users-page .table-cell { padding: 2px 6px; border-right: 1px solid #e4e7ed; border-bottom: 1px solid #e4e7ed; display: flex; align-items: center; min-height: 34px; max-height: 34px; height: 34px; box-sizing: border-box; font-size: 13px; color: #303133; line-height: 1; margin: 0px; overflow: hidden; }

.users-page .table-cell:first-child { border-left: 1px solid #e4e7ed; }

.users-page .table-cell:last-child { border-right: 1px solid #e4e7ed; }

.users-page .data-row:last-child .table-cell { border-bottom: 1px solid #e4e7ed; }

.users-page .empty-row .table-cell { grid-column: 1 / -1; justify-content: center; min-height: 80px; border-bottom: 1px solid #e4e7ed; }

.users-page .header-cell { cursor: pointer; user-select: none; transition: background-color 0.2s; }

.users-page .header-cell:hover { background-color: #f5f7fa !important; }

.users-page .col-id .cell-wrapper, .users-page .col-parent-id .cell-wrapper, .users-page .col-status .cell-wrapper, .users-page .col-steam-id .cell-wrapper { justify-content: center; }

.users-page .col-username .cell-wrapper, .users-page .col-account-type .cell-wrapper, .users-page .col-balance .cell-wrapper, .users-page .col-pregenerate-quota .cell-wrapper, .users-page .col-refund-count .cell-wrapper, .users-page .col-last-login-time .cell-wrapper, .users-page .col-last-login-ip .cell-wrapper, .users-page .col-actions .cell-wrapper { justify-content: flex-start; }

.users-page .cell-wrapper { display: flex; align-items: center; width: 100%; gap: 4px; height: 100%; }

.users-page .cell-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; font-size: 13px; }

.users-page .sort-indicators { display: flex; flex-direction: column; align-items: center; gap: 0px; width: 12px; height: 16px; flex-shrink: 0; padding: 0px; border-radius: 1px; transition: background-color 0.2s; }

.users-page .header-cell:hover .sort-indicators { background-color: rgba(64, 158, 255, .1); }

.users-page .sort-placeholder { width: 12px; height: 16px; flex-shrink: 0; }

.users-page .sort-arrow { font-size: 7px; color: #909399; transition: 0.2s; cursor: pointer; line-height: 1; height: 7px; display: flex; align-items: center; justify-content: center; }

.users-page .sort-arrow.active { color: #409eff; font-weight: 700; text-shadow: 0 0 1px #409eff; }

.users-page .sort-arrow:hover { color: #409eff; }

.users-page .header-cell:hover .sort-arrow { color: #606266; }

.users-page .header-cell:hover .sort-arrow.active { color: #409eff; }

.users-page .pagination-footer-fixed { position: fixed; left: 0 !important; right: 0 !important; bottom: 0; z-index: 1000; padding: 15px 20px; background-color: #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .1); border: 0; border-radius: 0; display: flex; justify-content: center; align-items: center; }

.users-page .desktop-table { display: grid; }

.users-page .mobile-card-list { display: none; }

.users-page .desktop-actions { display: flex; align-items: center; }

.users-page .mobile-actions { display: none; }

.users-page .mobile-actions-content { padding: 20px 0px; }

.users-page .mobile-actions-content .user-info { text-align: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e4e7ed; }

.users-page .mobile-actions-content .user-info h4 { margin: 0px 0px 8px; color: #303133; font-size: 18px; }

.users-page .mobile-actions-content .action-buttons { display: flex; flex-direction: column; gap: 12px; }

.users-page .mobile-actions-content .action-buttons .el-button { height: 48px; font-size: 16px; justify-content: flex-start; padding-left: 20px; }

.users-page .mobile-actions-content .action-buttons .el-button .el-icon { margin-right: 8px; }

.users-page .user-card { background-color: #fff; border: 1px solid #e4e7ed; border-radius: 8px; padding: 12px; box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px; }

.users-page .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #e4e7ed; }

.users-page .user-basic-info { display: flex; align-items: center; gap: 8px; }

.users-page .username { font-weight: 600; font-size: 16px; color: #303133; }

.users-page .card-content { margin-bottom: 12px; }

.users-page .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.users-page .info-item { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

.users-page .info-item .label { color: #606266; font-weight: 500; }

.users-page .info-item .value { color: #303133; font-weight: 600; }

.users-page .info-item .value.balance { font-weight: 700; }

.users-page .card-actions { display: flex; gap: 8px; justify-content: flex-end; }

.users-page .card-actions .el-button { flex: 1 1 0%; }

.users-page .empty-state { padding: 40px 20px; text-align: center; }

.users-page .recharge-target-info { background-color: #f8f9fa; border: 1px solid #e4e7ed; border-radius: 8px; padding: 16px; margin-bottom: 16px; }

.users-page .target-header h4 { margin: 0px 0px 12px; color: #303133; font-size: 16px; font-weight: 600; }

.users-page .target-details { display: flex; flex-direction: column; gap: 8px; }

.users-page .detail-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }

.users-page .detail-row .label { color: #606266; font-weight: 500; min-width: 80px; }

.users-page .detail-row .value { color: #303133; font-weight: 600; }

.users-page .detail-row .balance-amount { font-weight: 700; font-size: 16px; }

.users-page .recharge-preview { background-color: rgba(var(--success-rgb),.1); border: 1px solid rgba(var(--success-rgb),.3); border-radius: 6px; padding: 12px; margin-top: 16px; }

.users-page .preview-item { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }

.users-page .preview-label { color: #606266; font-weight: 500; }

.users-page .preview-value.success { color: var(--success-color); font-weight: 700; font-size: 16px; }

.users-page .dialog-footer { display: flex; justify-content: flex-end; gap: 12px; }

@media (max-width: 768px) {
  .users-container { padding: 15px; left: 0px !important; }

.users-page .pagination-footer-fixed { bottom: 0; padding: 10px 14px; right: 0 !important; left: 0 !important; }

.users-page .page-header h1 { font-size: 20px; }

.users-page .desktop-table { display: none; }

.users-page .mobile-card-list { display: flex; flex-direction: column; gap: 12px; padding: 0px; }

.users-page .desktop-actions { display: none; }

.users-page .mobile-actions { display: flex; justify-content: center; align-items: center; }

.users-page .search-section .el-form { flex-direction: column; gap: 8px; }

.users-page .search-section .el-form-item { margin-bottom: 8px; margin-right: 0px; }

.users-page .search-section .el-input, .users-page .search-section .el-select { width: 100% !important; }

.users-page .table-actions { flex-direction: column; gap: 8px; }

.users-page .table-actions .el-button { width: 100%; }

.users-page .recharge-target-info { padding: 12px; margin-bottom: 12px; }

.users-page .target-details { gap: 6px; }

.users-page .detail-row { font-size: 13px; }

.users-page .detail-row .label { min-width: 70px; }

.users-page .recharge-preview { padding: 10px; margin-top: 12px; }

.users-page .preview-item { font-size: 14px; }

.users-page .dialog-footer { flex-direction: column; gap: 8px; }

.users-page .dialog-footer .el-button { width: 100%; }

.users-page .table-actions-section { padding: 8px 0px; }

.users-page .unified-table { grid-template-columns: 60px 110px 90px 70px 100px 100px 80px 70px 100px 100px 110px 140px; }

.users-page .unified-table.agent-users-table { grid-template-columns: 80px 110px 90px 90px 80px 80px 70px minmax(140px, 1fr); }

.users-page .table-cell { padding: 2px 4px; font-size: 12px; min-height: 32px; max-height: 32px; height: 32px; }

.users-page .cell-text { font-size: 12px; }

}

.users-page .table-container::-webkit-scrollbar { width: 6px; height: 6px; }
.users-page .table-container::-webkit-scrollbar-track { background: #f5f5f5; }
.users-page .table-container::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; transition: background 0.3s; }
.users-page .table-container::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
.users-page .table-container::-webkit-scrollbar-corner { background: transparent; }

.users-page .pagination-footer-fixed .el-pagination { display: flex; align-items: center; justify-content: center; }

.users-page .pagination-footer-fixed .el-pagination__sizes { display: flex; align-items: center; }

.users-page .pagination-footer-fixed .el-select .el-input .el-input__inner { text-align: center; }

.users-page .pagination-footer-fixed .el-pagination__sizes .el-select { margin: 0px 8px; }

.users-page .pagination-footer-fixed .el-pagination__total { font-weight: 500; }

.users-page .pagination-footer-fixed .el-pagination__jump { display: flex; align-items: center; margin-left: 16px; }

.users-page .pagination-footer-fixed .el-pagination__jump .el-input { width: 50px; margin: 0px 8px; }

.main:has(.users-page) { padding: 0; overflow: hidden; min-height: calc(100vh - 64px); }
.users-container { left: var(--sidebar-w); }
body.is-folded .users-container { left: 64px; }
.users-page .filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.users-page .filter-form .filter-item { margin-bottom: 0; height: 32px; }
.users-page .filter-form .input,
.users-page .filter-form .btn {
  height: 32px;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
}
.users-page .search-card .block-bd { padding: 16px 20px; }
.users-page .pagination-footer-fixed .pager { position: static; right: auto; bottom: auto; margin: 0; border: 0; box-shadow: none; padding: 0; background: transparent; }
.users-page .money-red { color: #f56c6c; }
.users-page .money-green { color: #67c23a; }
.users-page .money-blue { color: #409eff; }
.users-page .money-orange { color: #e6a23c; }
.users-page .page-header { margin-bottom: 8px; }
.users-page .page-header h1 { margin: 0; font-size: 22px; font-weight: 400; }

/* ===== cdkeys page ===== */
.main:has(.cdkeys-page) { padding: 0; }
.cdkeys-page { padding: 20px; min-height: 100vh; max-width: 100%; overflow-x: hidden; display: flex; flex-direction: column; }
.cdkeys-container { flex: 1 1 0%; display: flex; flex-direction: column; min-height: 0; background: transparent; padding-bottom: 80px; }
.cdkeys-page .page-header { margin-bottom: 20px; }
.cdkeys-page .page-header h1 { margin: 0; color: #303133; font-size: 24px; font-weight: 600; }
.cdkeys-page .stats-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; }
.cdkeys-page .stat-card { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 12px; padding: 24px; text-align: center; cursor: pointer; transition: .3s; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.cdkeys-page .stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.cdkeys-page .stat-card:nth-child(2) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.cdkeys-page .stat-card:nth-child(3) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cdkeys-page .stat-number { font-size: 36px; font-weight: 700; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,.1); }
.cdkeys-page .stat-label { font-size: 14px; opacity: .9; }
.cdkeys-page .search-section { display: flex; gap: 15px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.cdkeys-page .advanced-toggle {
  color: #909399;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cdkeys-page .advanced-toggle .ico { width: 14px; height: 14px; }
.cdkeys-page .advanced-toggle.is-open { color: #409eff; }
.cdkeys-page .advanced-toggle:hover {
  color: #409eff;
  border-color: #409eff;
  background: #fff;
}
.cdkeys-page .ck-ops-wrap {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition: max-height .35s ease, opacity .28s ease, margin-bottom .35s ease;
}
.cdkeys-page .ck-ops-wrap.is-open {
  max-height: 120px;
  opacity: 1;
  margin-bottom: 16px;
}
.cdkeys-page .ck-ops-overview {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 48px;
  padding: 14px 18px;
  background: #f5f7fa;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
}
.cdkeys-page .ck-ops-periods {
  position: relative;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.cdkeys-page .ck-ops-pill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #409eff;
  border-radius: 3px;
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
  pointer-events: none;
}
.cdkeys-page .ck-ops-period {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent !important;
  color: #606266;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  cursor: pointer;
  line-height: 32px;
  white-space: nowrap;
  transition: color .2s ease;
}
.cdkeys-page .ck-ops-period + .ck-ops-period { border-left: 1px solid transparent; }
.cdkeys-page .ck-ops-period:hover { color: #409eff; }
.cdkeys-page .ck-ops-period.is-active { color: #fff; }
.cdkeys-page .ck-ops-period.is-active:hover { color: #fff; }
.cdkeys-page .ck-ops-head {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 280px;
}
.cdkeys-page .ck-ops-title {
  font-size: 16px;
  font-weight: 400;
  color: #303133;
  line-height: 1.35;
}
.cdkeys-page .ck-ops-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #909399;
  line-height: 1.4;
}
.cdkeys-page .ck-ops-cards {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  margin-left: 0;
  flex-shrink: 0;
}
.cdkeys-page .ck-ops-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  width: 200px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cdkeys-page .ck-ops-card:hover {
  border-color: #409eff;
  box-shadow: 0 2px 8px rgba(64,158,255,.18);
  transform: translateY(-1px);
}
.cdkeys-page .ck-ops-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #409eff;
  background: #ecf5ff;
  flex-shrink: 0;
}
.cdkeys-page .ck-ops-ico .ico { width: 14px; height: 14px; }
.cdkeys-page .ck-ops-label { color: #909399; font-size: 13px; white-space: nowrap; }
.cdkeys-page .ck-ops-num { color: #303133; font-size: 20px; font-weight: 700; margin-left: 8px; }
.cdkeys-page .search-input-group {
    display: flex;
    gap: 0;
    align-items: center;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    height: 42px;
    box-sizing: border-box;
}
.cdkeys-page .el-select {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 32px;
    width: 120px;
    vertical-align: middle;
}
.cdkeys-page .el-select__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 32px;
    padding: 0 8px 0 12px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: #303133;
    font-size: 14px;
    line-height: 32px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 0 1px #dcdfe6 inset;
    box-sizing: border-box;
    text-align: left;
    font-family: inherit;
}
.cdkeys-page .el-select__wrapper:hover { box-shadow: 0 0 0 1px #c0c4cc inset; }
.cdkeys-page .el-select.is-focused .el-select__wrapper,
.cdkeys-page .el-select.is-open .el-select__wrapper {
    box-shadow: 0 0 0 1px var(--primary) inset;
}
.cdkeys-page .el-select__selected-item {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #303133;
}
.cdkeys-page .el-select__placeholder {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #a8abb2;
}
.cdkeys-page .el-select-caret {
    flex: 0 0 auto;
    margin-left: 6px;
    color: #a8abb2;
    display: inline-flex;
    transition: transform .2s;
}
.cdkeys-page .el-select.is-open .el-select-caret { transform: rotate(180deg); }
.cdkeys-page .el-select-caret .ico { width: 12px; height: 12px; }
.cdkeys-page .search-type-select {
    width: 120px;
    flex: 0 0 120px;
}
.cdkeys-page .search-type-select .el-select__wrapper {
    background: transparent;
    box-shadow: none;
    border-radius: 4px 0 0 4px;
}
.cdkeys-page .search-type-select.is-focused .el-select__wrapper,
.cdkeys-page .search-type-select.is-open .el-select__wrapper {
    box-shadow: 0 0 0 1px var(--primary) inset;
    background: #fff;
}
.cdkeys-page .status-select { width: 120px; }
.cdkeys-page .el-select-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 2000;
    min-width: 100%;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(0, 0, 0, .12);
    box-sizing: border-box;
}
.cdkeys-page .el-select-dropdown[hidden] { display: none !important; }
.cdkeys-page .el-popper__arrow {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    z-index: 1;
}
.cdkeys-page .el-popper__arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-bottom-color: transparent;
    border-right-color: transparent;
    transform: rotate(45deg);
}
.cdkeys-page .el-select-dropdown__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.cdkeys-page .el-select-dropdown__item {
    height: 34px;
    line-height: 34px;
    padding: 0 32px 0 20px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}
.cdkeys-page .el-select-dropdown__item:hover,
.cdkeys-page .el-select-dropdown__item.is-hovering {
    background: #f5f7fa;
}
.cdkeys-page .el-select-dropdown__item.is-selected {
    color: #409eff;
    font-weight: 400;
}
.cdkeys-page .search-input-wrap {
    display: flex;
    align-items: center;
    border-left: 1px solid #e4e7ed;
    padding-left: 8px;
    height: 32px;
    flex: 1;
}
.cdkeys-page .search-prefix { color: #a8abb2; display: inline-flex; margin-right: 6px; }
.cdkeys-page .search-prefix .ico { width: 14px; height: 14px; }
.cdkeys-page .search-input-wrap .search-input {
    border: 0;
    box-shadow: none;
    background: transparent;
    height: 32px;
    padding-left: 0;
    outline: none;
}
.cdkeys-page .search-actions { display: flex; gap: 8px; margin-left: auto; }
.cdkeys-page .search-actions .btn {
    height: 32px;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}
.cdkeys-page .search-actions .btn .ico { width: 14px; height: 14px; color: inherit; }
.cdkeys-page .search-actions .btn-success {
    background: #67c23a;
    border-color: #67c23a;
    color: #fff;
}
.cdkeys-page .search-actions .btn-success:hover {
    background: #85ce61;
    border-color: #85ce61;
    color: #fff;
}
.cdkeys-page .search-actions .btn-danger,
.cdkeys-page .search-actions .btn-batch-recycle {
    background: #f56c6c;
    border-color: #f56c6c;
    color: #fff;
}
.cdkeys-page .search-actions .btn-danger:hover,
.cdkeys-page .search-actions .btn-batch-recycle:hover {
    background: #f78989;
    border-color: #f78989;
    color: #fff;
}
.batch-recycle-content { padding: 0 4px; }
.batch-recycle-content .el-alert {
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    background: #fdf6ec;
    color: #e6a23c;
}
.batch-recycle-content .el-alert__title {
    display: block;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #e6a23c;
    margin-bottom: 4px;
}
.batch-recycle-content .el-alert__description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e6a23c;
}
.batch-recycle-content .el-alert__description p {
    margin: 0;
}
.batch-recycle-field {
    align-items: flex-start;
    margin: 0;
}
.batch-recycle-field .field-label {
    line-height: 32px;
    color: #606266;
    padding-right: 12px;
}
.batch-recycle-field .field-content { flex: 1; min-width: 0; }
.batch-recycle-content .el-textarea__inner {
    display: block;
    width: 100%;
    min-height: 220px;
    padding: 5px 11px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 14px;
    line-height: 1.5;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    outline: none;
}
.batch-recycle-content .el-textarea__inner:hover { border-color: #c0c4cc; }
.batch-recycle-content .el-textarea__inner:focus { border-color: #409eff; }
.dialog-batch .dialog-footer { gap: 12px; }
.dialog-batch #batch-recycle-confirm:disabled,
.dialog-batch #batch-recycle-confirm.is-disabled {
    background: #f56c6c;
    border-color: #f56c6c;
    color: #fff;
    opacity: .5;
    cursor: not-allowed;
}
.cdkeys-page .search-section > .btn-primary {
    height: 32px;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cdkeys-page .search-section > .btn-primary .ico { width: 14px; height: 14px; }
.cdkeys-page .table-section { flex: 1 1 0%; min-height: 400px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); overflow: hidden; display: flex; flex-direction: column; }
.cdkeys-page .table-wrap { overflow: auto; flex: 1; }
.cdkeys-page .cdkeys-table { width: 100%; border-collapse: collapse; border: 1px solid #ebeef5; }
.cdkeys-page .cdkeys-table th {
    background: #f8f9fa;
    color: #494850;
    font-weight: 600;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    padding: 12px 8px;
    font-size: 13px;
    white-space: nowrap;
}
.cdkeys-page .cdkeys-table th:last-child { border-right: 0; }
.cdkeys-page .cdkeys-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #ebeef5;
    border-right: 1px solid #ebeef5;
    font-size: 13px;
    color: #303133;
    vertical-align: middle;
}
.cdkeys-page .cdkeys-table td:last-child { border-right: 0; }
.cdkeys-page .cdkeys-table tbody tr:nth-child(even) { background-color: #fafbfc; }
.cdkeys-page .cdkeys-table tbody tr:hover { background-color: #f8f9fa; }
.cdkeys-page .price-text { font-weight: 600; color: #e6a23c; font-size: 14px; }
.cdkeys-page .cdkey-container { display: flex; align-items: center; gap: 8px; justify-content: flex-start; min-width: 0; width: 100%; }
.cdkeys-page .cdkey-code {
    font-family: "Courier New", Consolas, monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #495057;
    border: 1px solid #e9ecef;
    display: inline-block;
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cdkeys-page .copy-btn,
.cdkeys-page .generate-btn {
    opacity: 0;
    transition: opacity .2s;
    margin-left: 0;
    padding: 0 4px;
    height: 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}
.cdkeys-page .copy-btn { color: #409eff; }
.cdkeys-page .generate-btn { color: #67c23a; }
.cdkeys-page .cdkey-container:hover .copy-btn,
.cdkeys-page .cdkey-container:hover .generate-btn { opacity: 1; }
.cdkeys-page .copy-btn .ico,
.cdkeys-page .generate-btn .ico { width: 14px; height: 14px; }
.cdkeys-page .has-tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    top: auto;
    transform: translateX(-50%);
    background: #303133;
    color: #fff;
    border: 1px solid #303133;
    font-size: 12px;
    line-height: 20px;
    padding: 5px 11px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 50;
}
.cdkeys-page .has-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% - 2px);
    top: auto;
    width: 8px;
    height: 8px;
    border: 0;
    background: #303133;
    transform: translateX(-50%) rotate(45deg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease;
    z-index: 49;
}
.cdkeys-page .has-tip:hover::after,
.cdkeys-page .has-tip:hover::before,
.cdkeys-page .has-tip:focus::after,
.cdkeys-page .has-tip:focus::before,
.cdkeys-page .has-tip.is-tip-copied::after,
.cdkeys-page .has-tip.is-tip-copied::before {
    opacity: 1;
    visibility: visible;
}
.cdkeys-page .has-tip.is-tip-copied::after { content: "复制成功"; }
.el-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    padding: 10px 16px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #ebeef5;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    color: #67c23a;
    font-size: 14px;
    line-height: 1;
    pointer-events: none;
}
.el-message.is-success { background: #f0f9eb; border-color: #e1f3d8; color: #67c23a; }
.el-message.is-leaving { opacity: 0; transition: opacity .2s ease; }
.cdkeys-page .game-id { font-size: 14px; color: #303133; font-weight: 500; font-family: Monaco, Consolas, monospace; }
.cdkeys-page .user-info { color: #606266; font-size: 14px; }
.cdkeys-page .steam-id {
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #909399;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}
.cdkeys-page .time-text { color: #606266; white-space: nowrap; }
.cdkeys-page .tag {
    border-radius: 12px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    height: 22px;
    line-height: 1;
    border: 1px solid;
    box-sizing: border-box;
}
.cdkeys-page .tag-primary { color: #409eff; background: #ecf5ff; border-color: #d9ecff; }
.cdkeys-page .tag-ck-success { background: #f0f9ff; color: #10b981; border-color: #10b981; }
.cdkeys-page .tag-ck-warning { background: #fffbeb; color: #f59e0b; border-color: #f59e0b; }
.cdkeys-page .tag-ck-void {
  background: #fff;
  color: #e6a23c;
  border: 1px solid #e6a23c;
}
.cdkeys-page .btn-recycle { min-width: 50px; height: 26px; font-size: 12px; padding: 4px 8px; }
.cdkeys-page .notes-container { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: center; }
.cdkeys-page .notes-display {
    width: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: .2s;
}
.cdkeys-page .notes-display:hover { background-color: #f5f7fa; }
.cdkeys-page .notes-text {
    flex: 1 1 0%;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #c0c4cc;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}
.cdkeys-page .edit-icon { color: #c0c4cc; opacity: 0; transition: opacity .2s; display: inline-flex; }
.cdkeys-page .edit-icon .ico { width: 12px; height: 12px; }
.cdkeys-page .notes-display:hover .edit-icon { opacity: 1; }
.cdkeys-page .data th.is-center, .cdkeys-page .data td.is-center { text-align: center; }
.cdkeys-page .pagination-footer-fixed,
.auto-auth-page .pagination-footer-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .1);
}
.cdkeys-page .pagination-footer-fixed .pager,
.auto-auth-page .pagination-footer-fixed .pager {
    position: static;
    right: auto;
    bottom: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.cdkeys-page.cdkeys-page,
.auto-auth-page { padding-bottom: 80px; }

/* ===== games page ===== */
.main:has(.games-container) { padding: 0; }
.games-container { padding: 20px 20px 80px; min-height: calc(100vh - 120px); position: relative; }
.games-card.box-card, .box-card.games-card { background: #fff; border: 1px solid #e4e7ed; border-radius: 12px; box-shadow: 0 2px 12px 0 rgba(0,0,0,.1); overflow: hidden; }
.games-container .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e5e7eb;
}
.games-container .card-header .title { font-size: 18px; font-weight: 500; color: #303133; }
.games-container .header-actions { display: flex; gap: 8px; }
.games-container .view-toggle-btn {
    position: relative;
    z-index: 5;
    width: 36px;
    height: 36px;
    background: #f5f7fa;
    border: 1px solid #dcdfe6;
    color: #606266;
    pointer-events: auto;
    cursor: pointer;
}
.games-container .view-toggle-btn:hover { background: #ecf5ff; border-color: #409eff; color: #409eff; }
.games-container .header-actions { position: relative; z-index: 5; }
.games-container .game-card.is-focused {
    outline: 2px solid #409eff;
    box-shadow: 0 0 0 4px rgba(64, 158, 255, .2);
}
.games-container .games-grid[data-games-view="list"] .grid-container { display: none; }
.games-container .game-grid[data-games-view="grid"] .games-table-wrap { display: none; }
.games-container .games-table-wrap { margin-top: 8px; }
.games-container tr.is-focused td { background: #ecf5ff; }
.games-container .card-body { padding: 20px; }
.games-container .search-form { margin-bottom: 20px; padding: 16px; background: #f8f9fa; border-radius: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.games-container .filter-item-h { display: flex; align-items: center; gap: 0; margin: 0; }
.games-container .filter-label { text-align: right; padding-right: 12px; color: #606266; font-size: 14px; line-height: 32px; flex: 0 0 auto; }
.games-container .input-group { display: flex; align-items: stretch; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; overflow: visible; }
.games-container .input-group-addon { display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; background: #f5f7fa; color: #909399; border-right: 1px solid #dcdfe6; }
.games-container .input-group .input { border: 0; border-radius: 0; flex: 1; min-width: 0; }
.games-container .input-group-append {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f5f7fa;
    color: #909399;
    border-left: 1px solid #dcdfe6;
    cursor: help;
    position: relative;
}
.games-container .input-group-append .ico { width: 14px; height: 14px; }
.games-container .search-help:hover,
.games-container .search-help:focus { color: #409eff; outline: none; }
.games-container .search-help::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #303133;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 20;
}
.games-container .search-help::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #303133;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
    z-index: 20;
}
.games-container .search-help:hover::after,
.games-container .search-help:hover::before,
.games-container .search-help:focus::after,
.games-container .search-help:focus::before {
    opacity: 1;
    visibility: visible;
}
.games-container .advanced-toggle { color: #909399; }
.games-container .advanced-toggle.is-open { color: #409eff; }
.games-container .advanced-search-form {
    display: none;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    padding: 16px;
    background: #fafbfc;
    border-radius: 8px;
    border: 1px solid #e4e7ed;
    margin-bottom: 20px;
    overflow: hidden;
}
.games-container .advanced-search-form.is-open {
    display: flex;
}
.games-container .advanced-search-form.is-hidden,
.games-container .advanced[hidden],
.advanced.is-hidden { display: none !important; }
.games-container .games-grid { min-height: 400px; }
.games-container .grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 8px; }
.games-container .game-image { position: relative; width: 100%; height: 140px; overflow: hidden; background: linear-gradient(135deg, #667eea, #764ba2); flex-shrink: 0; }
.games-container .image-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.games-container .image-placeholder .ico { width: 48px; height: 48px; opacity: .9; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.games-container .game-overlay { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.2); color: #fff; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 700; backdrop-filter: blur(12px); z-index: 2; border: 1px solid rgba(255,255,255,.3); text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.games-container .game-appid { font-size: 12px; color: inherit; margin: 0; }
.games-container .game-info { padding: 10px; display: flex; flex-direction: column; flex: 1 1 0%; min-height: 0; }
.games-container .game-title { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #303133; line-height: 1.2; height: 32px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.games-container .game-name { margin: 0 0 8px; font-size: 12px; color: #606266; line-height: 1.3; height: 16px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.games-container .game-meta { margin-bottom: 6px; display: flex; justify-content: flex-start; align-items: center; font-size: 11px; color: #909399; height: 20px; }
.games-container .game-price-meta { font-weight: 600; color: #e74c3c; }
.games-container .game-actions { display: flex; gap: 6px; margin-top: 8px; }
.games-container .action-btn { flex: 1 1 0%; min-width: 0; font-size: 12px !important; padding: 4px 8px !important; height: 26px !important; line-height: 18px !important; min-height: 26px !important; border-radius: 6px !important; font-weight: 500; }
.games-container .game-actions .btn-success.action-btn { background: linear-gradient(135deg, #67c23a, #5daf34); border: 0; color: #fff; }
.games-container .game-actions .btn-success.action-btn:hover { background: linear-gradient(135deg, #5daf34, #529b2e); transform: translateY(-1px); }
.games-container .game-actions .more-btn,
.games-container .game-actions .btn-info.action-btn {
    background: #909399;
    border: 1px solid #909399;
    color: #fff;
    gap: 4px;
}
.games-container .game-actions .more-btn:hover,
.games-container .game-actions .btn-info.action-btn:hover {
    background: #a6a9ad;
    border-color: #a6a9ad;
    color: #fff;
}
.games-container .game-actions .more-btn .ico,
.games-container .game-actions .btn-info.action-btn .ico {
    width: 12px;
    height: 12px;
    color: #fff;
}
.games-container .pager { margin-top: 16px; }

/* ===== auto-auth page ===== */
.auto-auth-page { padding: 0; }
.auto-auth-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.auto-auth-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f3f5f7;
    border: 1px solid #dcdfe6;
}
.auto-auth-toolbar-left,
.auto-auth-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.auto-auth-toolbar-left > span { color: #606266; font-size: 14px; white-space: nowrap; }
.auto-auth-table-wrap { overflow: auto; max-height: calc(100vh - 220px); }
.auto-auth-table { width: 100%; border-collapse: collapse; }
.auto-auth-table th {
    background: #eef3f8 !important;
    color: #303133;
    font-weight: 600;
    white-space: nowrap;
}
.auto-auth-table td { white-space: nowrap; }
.auto-auth-table tbody tr.row-selected td { background: #dbe7f5; }
.auto-auth-table tbody tr.row-selected:hover td { background: #cddceb; }
.auto-auth-page .data th.is-center, .auto-auth-page .data td.is-center { text-align: center; }

.check-inline { display: inline-flex; align-items: center; gap: 6px; color: #606266; font-size: 14px; }
/* ===== settings home template ===== */
.settings-home-page { padding: 0; }
.settings-home-page .page-title {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 800;
    color: #303133;
}
.settings-home-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    margin-bottom: 14px;
}
.settings-home-card > h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}
.home-edit-welcome { margin: 12px 0 56px; }
.home-edit-boards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    margin-bottom: 16px;
}
.home-edit-col { min-width: 0; }
.home-edit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
}
.home-edit-head .input { flex: 0 0 50%; width: 50%; max-width: 50%; }
.rich-editor {
    width: 100%;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}
.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    background: #f8f8f8;
    border-bottom: 1px solid #dcdfe6;
}
.rich-tb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    font-size: 12px;
    color: #606266;
    border-radius: 2px;
    cursor: default;
    user-select: none;
}
.rich-body {
    padding: 8px 10px;
    min-height: 70px;
    color: #606266;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
}
.rich-body-lg { min-height: 260px; }
.rich-upload { margin-top: 8px; }
.btn-outline-primary {
    background: #fff;
    border: 1px solid #409eff;
    color: #409eff;
    height: 32px;
    padding: 0 15px;
}
.btn-outline-primary:hover {
    background: #ecf5ff;
    border-color: #409eff;
    color: #409eff;
}
.el-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 20px;
    cursor: pointer;
}
.el-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.el-switch__core {
    width: 40px;
    height: 20px;
    border-radius: 10px;
    background: #dcdfe6;
    border: 1px solid #dcdfe6;
    position: relative;
    transition: .2s;
    box-sizing: border-box;
}
.el-switch__core::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.el-switch.is-checked .el-switch__core {
    background: #409eff;
    border-color: #409eff;
}
.el-switch.is-checked .el-switch__core::after { left: 21px; }
@media (max-width: 900px) {
    .home-edit-boards { grid-template-columns: 1fr; }
}

/* agent logic UI */
.login-error {
  color: #f56c6c;
  font-size: 13px;
  margin: 0 0 10px;
  text-align: left;
}
.recharge-blocked {
  color: #f56c6c;
  font-size: 13px;
  margin: 8px 0 0;
}
.agent-users-table .table-empty {
  padding: 28px;
  text-align: center;
  color: #909399;
}
.agent-users-table .desktop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.users-page .detail-row.my-balance-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: #606266;
}
.users-page .detail-row .label { color: #909399; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.ck-ops { display: inline-flex; gap: 6px; align-items: center; }
.auth-tabs, .auth-actions, .auth-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.auth-tabs { justify-content: center; margin-bottom: 16px; }
.auth-tabs .btn.is-active { background: #409eff; border-color: #409eff; color: #fff; }
.auth-layout { display: flex; gap: 16px; }
.auth-modes { width: 88px; display: flex; flex-direction: column; gap: 16px; }
.auth-modes label { display: flex; align-items: center; gap: 6px; }
.auth-fields { flex: 1; min-width: 0; }
.auth-addon { display: flex; width: 100%; }
.auth-addon input, .auth-addon select { flex: 1; min-width: 0; }
.auth-addon .btn { border-radius: 0 4px 4px 0; flex-shrink: 0; }
.auth-actions { justify-content: center; margin: 12px 0; }
.auth-note { margin: 0; color: #f56c6c; text-align: center; font-size: 13px; }
.auth-banner { margin-top: 12px; padding: 8px 12px; border-radius: 4px; color: #fff; line-height: 1.4; }
.auth-banner.is-ok { background: #4c934c; }
.auth-banner.is-error { background: #f56c6c; }
#auth-wh-body tr { cursor: pointer; }
#auth-wh-body tr.is-selected { background: #ecf5ff; }
/* auth-wh-overlay-20261101 */
#dlg-auth-wh.mask { z-index: 2000; }
#dlg-auth-wh .dialog {
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#dlg-auth-wh .dialog-bd {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
#dlg-auth-wh #auth-wh-pager.pager {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  margin: 12px 0 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
#cdkeys-page.is-auth-wh-open .pagination-footer-fixed {
  display: none !important;
}


#dlg-auth.mask {
  pointer-events: none;
  background: transparent;
}
#dlg-auth .auth-card {
  width: 520px;
  max-width: calc(100vw - 32px);
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
}
#dlg-auth .auth-card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 0;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f0f7ff, #e8f3ff);
}
#dlg-auth .auth-card-hd-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #303133;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
#dlg-auth .auth-card-ico { width: 18px; height: 18px; color: #409eff; }
#dlg-auth .auth-card-cdk {
  flex: 1;
  min-width: 0;
  text-align: right;
  color: #909399;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#dlg-auth .auth-card-close { margin-left: 4px; color: #c0c4cc; }
#dlg-auth .auth-card-bd { padding: 4px 24px 20px; }
#dlg-auth .auth-game { text-align: center; margin-bottom: 8px; }
#dlg-auth .auth-cover-wrap {
  position: relative;
  width: 220px;
  height: 100px;
  margin: 0 auto 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}
#dlg-auth .auth-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
#dlg-auth .auth-cover-placeholder .ico { width: 40px; height: 40px; opacity: .9; }
#dlg-auth .auth-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
#dlg-auth .auth-zh {
  font-size: 16px;
  font-weight: 700;
  color: #303133;
  line-height: 1.4;
  word-break: break-word;
}
#dlg-auth .auth-en {
  margin-top: 4px;
  font-size: 13px;
  color: #909399;
  line-height: 1.3;
  word-break: break-word;
}
#dlg-auth .auth-bar {
  height: 6px;
  margin: 0;
  border-radius: 3px;
  background: #95d475;
  max-width: 100%;
}
#dlg-auth .auth-mid {
  margin: 14px 0 16px;
}
#dlg-auth .auth-mid .auth-banner {
  margin: 0;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}
#dlg-auth .auth-channels {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 16px;
}
#dlg-auth .auth-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #606266;
  font-size: 14px;
  user-select: none;
}
#dlg-auth .auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
#dlg-auth .auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
#dlg-auth .auth-label { color: #606266; font-size: 13px; }
#dlg-auth .auth-field input,
#dlg-auth .auth-field select {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 0 10px;
  color: #303133;
  background: #fff;
  outline: none;
}
#dlg-auth .auth-field input:focus,
#dlg-auth .auth-field select:focus { border-color: #409eff; }
#dlg-auth .auth-addon input { border-radius: 4px 0 0 4px; }
#dlg-auth .auth-addon .btn {
  height: 36px;
  border: 1px solid #dcdfe6;
  border-left: 0;
  background: #f5f7fa;
  color: #606266;
}
#dlg-auth .auth-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
#dlg-auth .auth-btn {
  height: 40px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
#dlg-auth .auth-btn-submit {
  background: linear-gradient(180deg, #66b1ff 0%, #409eff 100%);
}
#dlg-auth .auth-btn-submit:hover { filter: brightness(1.03); }
#dlg-auth .auth-btn-cancel {
  background: linear-gradient(180deg, #85ce61 0%, #67c23a 100%);
}
#dlg-auth .auth-btn-cancel:hover { filter: brightness(1.03); }
#dlg-gen .gen-dialog { width: 700px; max-width: calc(100vw - 32px); border-radius: 8px; overflow: hidden; }


#dlg-stats table.data th.is-sortable { cursor: pointer; user-select: none; }
#dlg-stats table.data th .cell { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; }
#dlg-stats table.data .caret-wrapper {
  appearance: none; border: none; outline: none; margin: 0; padding: 0;
  background: transparent; cursor: pointer; vertical-align: middle;
  width: 24px; height: 14px; overflow: initial;
  display: inline-flex; flex-direction: column; align-items: center; position: relative;
}
#dlg-stats table.data .sort-caret {
  border: 5px solid transparent; width: 0; height: 0; position: absolute; left: 7px;
}
#dlg-stats table.data .sort-caret.ascending { border-bottom-color: #c0c4cc; top: -5px; }
#dlg-stats table.data .sort-caret.descending { border-top-color: #c0c4cc; bottom: -3px; }
#dlg-stats table.data th.ascending .sort-caret.ascending { border-bottom-color: #409eff; }
#dlg-stats table.data th.descending .sort-caret.descending { border-top-color: #409eff; }
#dlg-stats .table-wrap { position: relative; overflow-x: auto; }
#dlg-stats table.data { table-layout: fixed; }
#dlg-stats table.data th { position: relative; overflow: hidden; }
#dlg-stats table.data td { overflow: hidden; text-overflow: ellipsis; }
#dlg-stats .stats-col-resize-proxy {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px solid #e4e7ed;
  z-index: 20;
  pointer-events: none;
}

#cdkeys-page table.data th.is-sortable { cursor: pointer; user-select: none; }
#cdkeys-page table.data th .cell { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; justify-content: center; }
#cdkeys-page table.data th.is-sortable:not(.is-center) .cell { justify-content: flex-start; }
#cdkeys-page table.data .caret-wrapper {
  appearance: none; border: none; outline: none; margin: 0; padding: 0;
  background: transparent; cursor: pointer; vertical-align: middle;
  width: 24px; height: 14px; overflow: initial;
  display: inline-flex; flex-direction: column; align-items: center; position: relative;
}
#cdkeys-page table.data .sort-caret {
  border: 5px solid transparent; width: 0; height: 0; position: absolute; left: 7px;
}
#cdkeys-page table.data .sort-caret.ascending { border-bottom-color: #c0c4cc; top: -5px; }
#cdkeys-page table.data .sort-caret.descending { border-top-color: #c0c4cc; bottom: -3px; }
#cdkeys-page table.data th.ascending .sort-caret.ascending { border-bottom-color: #409eff; }
#cdkeys-page table.data th.descending .sort-caret.descending { border-top-color: #409eff; }

.auto-auth-page table.data th.is-sortable { cursor: pointer; user-select: none; }
.auto-auth-page table.data th .cell { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; justify-content: center; }
.auto-auth-page table.data .caret-wrapper {
  appearance: none; border: none; outline: none; margin: 0; padding: 0;
  background: transparent; cursor: pointer; vertical-align: middle;
  width: 24px; height: 14px; overflow: initial;
  display: inline-flex; flex-direction: column; align-items: center; position: relative;
}
.auto-auth-page table.data .sort-caret {
  border: 5px solid transparent; width: 0; height: 0; position: absolute; left: 7px;
}
.auto-auth-page table.data .sort-caret.ascending { border-bottom-color: #c0c4cc; top: -5px; }
.auto-auth-page table.data .sort-caret.descending { border-top-color: #c0c4cc; bottom: -3px; }
.auto-auth-page table.data th.ascending .sort-caret.ascending { border-bottom-color: #409eff; }
.auto-auth-page table.data th.descending .sort-caret.descending { border-top-color: #409eff; }

#cdkeys-page .table-wrap { position: relative; }
#cdkeys-page .table-section { position: relative; }
.btn.is-loading {
  pointer-events: none;
  position: relative;
}
.btn.is-loading > .ico { display: none; }
.btn .btn-loading-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-right: 2px;
  vertical-align: middle;
}
.btn .btn-loading-icon .circular {
  width: 14px;
  height: 14px;
  animation: ck-loading-rotate 2s linear infinite;
}
.btn .btn-loading-icon .path {
  stroke: #fff;
  stroke-width: 3px;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: ck-loading-dash 1.5s ease-in-out infinite;
}
.wanzi-loading-host,
.login-box,
#cdkeys-page .table-section,
.auto-auth-table-wrap,
.games-container .games-grid,
#users-page .table-section {
  position: relative;
}
.wanzi-loading-host > .el-loading-mask,
.login-box > .el-loading-mask,
#cdkeys-page .table-section > .el-loading-mask,
.auto-auth-table-wrap > .el-loading-mask,
.games-container .games-grid > .el-loading-mask,
#users-page .table-section > .el-loading-mask {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.wanzi-loading-host > .el-loading-mask .el-loading-spinner,
.login-box > .el-loading-mask .el-loading-spinner,
#cdkeys-page .table-section > .el-loading-mask .el-loading-spinner,
.auto-auth-table-wrap > .el-loading-mask .el-loading-spinner,
.games-container .games-grid > .el-loading-mask .el-loading-spinner,
#users-page .table-section > .el-loading-mask .el-loading-spinner {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  margin-top: -21px;
}
.wanzi-loading-host > .el-loading-mask .circular,
.login-box > .el-loading-mask .circular,
#cdkeys-page .table-section > .el-loading-mask .circular,
.auto-auth-table-wrap > .el-loading-mask .circular,
.games-container .games-grid > .el-loading-mask .circular,
#users-page .table-section > .el-loading-mask .circular {
  width: 42px;
  height: 42px;
  display: inline;
  animation: ck-loading-rotate 2s linear infinite;
}
.wanzi-loading-host > .el-loading-mask .path,
.login-box > .el-loading-mask .path,
#cdkeys-page .table-section > .el-loading-mask .path,
.auto-auth-table-wrap > .el-loading-mask .path,
.games-container .games-grid > .el-loading-mask .path,
#users-page .table-section > .el-loading-mask .path {
  stroke: #409eff;
  stroke-width: 2px;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: ck-loading-dash 1.5s ease-in-out infinite;
}
@keyframes ck-loading-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes ck-loading-dash {
  0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -40px; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120px; }
}
#cdkeys-page .cdkeys-table { table-layout: fixed; }
#cdkeys-page .cdkeys-table col.col-channel { width: 122px; }
#cdkeys-page .cdkeys-table col.col-appid { width: 81px; }
#cdkeys-page .cdkeys-table col.col-type { width: 81px; }
#cdkeys-page .cdkeys-table th { position: relative; overflow: hidden; }
#cdkeys-page .cdkeys-table td { overflow: hidden; text-overflow: ellipsis; }
#cdkeys-page .cdkeys-table td:nth-child(2) { overflow: visible; }
#cdkeys-page .cdkeys-table tbody tr:hover { position: relative; z-index: 3; }
#cdkeys-page .cdkeys-col-resize-proxy {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px solid #e4e7ed;
  z-index: 20;
  pointer-events: none;
}

#dlg-recycle .el-message-box {
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 32px 4px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.08);
}
#dlg-recycle .el-message-box__header {
  position: relative;
  padding: 0 28px 12px 0;
}
#dlg-recycle .el-message-box__title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #303133;
}
#dlg-recycle .el-message-box__headerbtn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #909399;
}
#dlg-recycle .el-message-box__headerbtn:hover { color: #409eff; }
#dlg-recycle .el-message-box__close {
  display: inline-flex;
  width: 16px;
  height: 16px;
}
#dlg-recycle .el-message-box__close svg { width: 16px; height: 16px; }
#dlg-recycle .el-message-box__content {
  color: #606266;
  font-size: 14px;
}
#dlg-recycle .el-message-box__container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
#dlg-recycle .el-message-box__status {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #909399;
}
#dlg-recycle .el-message-box__status svg { width: 24px; height: 24px; }
#dlg-recycle .el-message-box__message {
  margin: 0;
  color: #606266;
  font-size: 14px;
  line-height: 1.6;
  padding-top: 2px;
}
#dlg-recycle .el-message-box__message p { margin: 0; white-space: pre-wrap; }
#dlg-recycle .el-message-box__btns {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}
#dlg-recycle .el-message-box__btns .btn { min-width: 80px; }
#dlg-batch-recycle-confirm.mask {
  z-index: 60;
  background: rgba(0, 0, 0, .45);
}
#dlg-batch-recycle-confirm .el-message-box {
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 32px 4px rgba(0,0,0,.04), 0 8px 20px rgba(0,0,0,.08);
}
#dlg-batch-recycle-confirm .el-message-box__header {
  position: relative;
  padding: 0 28px 12px 0;
}
#dlg-batch-recycle-confirm .el-message-box__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #303133;
}
#dlg-batch-recycle-confirm .el-message-box__headerbtn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  color: #909399;
}
#dlg-batch-recycle-confirm .el-message-box__headerbtn:hover { color: #409eff; }
#dlg-batch-recycle-confirm .el-message-box__close {
  display: inline-flex;
  width: 16px;
  height: 16px;
}
#dlg-batch-recycle-confirm .el-message-box__close svg { width: 16px; height: 16px; }
#dlg-batch-recycle-confirm .el-message-box__content {
  color: #606266;
  font-size: 13px;
}
#dlg-batch-recycle-confirm .el-message-box__container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
#dlg-batch-recycle-confirm .el-message-box__status {
  flex: 0 0 auto;
  color: #e6a23c;
}
#dlg-batch-recycle-confirm .el-message-box__status svg { width: 24px; height: 24px; }
#dlg-batch-recycle-confirm .el-message-box__message {
  flex: 1 1 auto;
  line-height: 1.7;
  padding-top: 2px;
  font-size: 13px;
  color: #606266;
}
#dlg-batch-recycle-confirm .el-message-box__message p {
  margin: 0;
  white-space: normal;
  font-size: 13px;
  line-height: 1.7;
  color: #606266;
  font-weight: 400;
}
#dlg-batch-recycle-confirm .el-message-box__btns {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
}
#dlg-batch-recycle-confirm .el-message-box__btns .btn {
  min-width: 80px;
  font-size: 13px;
}
.batch-recycle-detect {
  margin-top: 10px;
  color: #606266;
  font-size: 13px;
  line-height: 1.5;
}
.batch-recycle-detect[hidden] { display: none; }
.batch-recycle-detect-num {
  display: inline;
  margin: 0 2px;
  padding: 0;
  min-width: 0;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #f56c6c;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  vertical-align: baseline;
}
.batch-recycle-confirm-num {
  display: inline;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: inherit;
  vertical-align: baseline;
}
#dlg-batch-recycle.mask:not([hidden]),
#dlg-batch-recycle-confirm.mask:not([hidden]),
#dlg-batch-recycle-result.mask:not([hidden]) {
  animation: batch-mask-in .22s ease;
}
#dlg-batch-recycle.mask:not([hidden]) > .dialog,
#dlg-batch-recycle-confirm.mask:not([hidden]) > .dialog,
#dlg-batch-recycle-result.mask:not([hidden]) > .dialog {
  animation: batch-dialog-in .22s ease;
}
@keyframes batch-mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes batch-dialog-in {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.batch-recycle-result-summary {
  margin-bottom: 12px;
  color: #303133;
  font-size: 14px;
  font-weight: 600;
}
.batch-recycle-result-block {
  margin-bottom: 12px;
  border: 1px solid #ebeef5;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.batch-recycle-result-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #303133;
}
.batch-recycle-result-block.is-ok h4 { color: #67c23a; }
.batch-recycle-result-block.is-over h4 { color: #e6a23c; }
.batch-recycle-result-block.is-err h4 { color: #f56c6c; }
.batch-recycle-result-list {
  max-height: 160px;
  overflow: auto;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #606266;
  word-break: break-all;
}
.batch-recycle-fail-reason {
  margin-left: 8px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  color: #f56c6c;
}
#dlg-stats .dialog { overflow: hidden; border-radius: 8px; }
#dlg-stats .dialog-hd {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
#dlg-stats .dialog-hd h3 { font-size: 16px; font-weight: 600; color: #1f2937; }
#dlg-stats table.data.wide { min-width: 0; width: 100%; table-layout: fixed; }
#dlg-stats table.data.wide th,
#dlg-stats table.data.wide td { word-break: break-all; }

#dlg-gxyx .dialog { overflow: hidden; border-radius: 8px; }
#dlg-gxyx .dialog-hd {
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
#dlg-gxyx .dialog-hd h3 { font-size: 16px; font-weight: 600; color: #1f2937; }
#dlg-gxyx .auth-game { text-align: center; margin: 8px 0 4px; }
#dlg-gxyx .auth-cover-wrap {
  position: relative;
  width: 220px;
  height: 100px;
  margin: 0 auto 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
}
#dlg-gxyx .auth-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
#dlg-gxyx .auth-cover-placeholder .ico { width: 40px; height: 40px; opacity: .9; }
#dlg-gxyx .auth-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
#dlg-gxyx .auth-zh {
  font-size: 16px;
  font-weight: 700;
  color: #303133;
  line-height: 1.4;
  word-break: break-word;
}
#dlg-gxyx .auth-en {
  margin-top: 4px;
  font-size: 13px;
  color: #909399;
  line-height: 1.3;
  word-break: break-word;
}
#dlg-gxyx .gxyx-steam-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
#dlg-gxyx .gxyx-steam-row .field {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
#dlg-gen .dialog-hd { padding: 18px 24px 8px; }
#dlg-gen .dialog-hd h3 { font-size: 18px; font-weight: 600; color: #303133; }
#dlg-gen .gen-body { display: grid; grid-template-columns: 300px 300px; gap: 20px; justify-content: center; align-items: stretch; padding: 24px; box-sizing: border-box; }
#dlg-gen .gen-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#dlg-gen .gen-card { border: 1px solid #e5e7eb; background: #fff; border-radius: 16px; padding: 0; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); overflow: hidden; }
#dlg-gen .gen-result-card { display: flex; flex-direction: column; height: 100%; }
#dlg-gen .gen-card-hd { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 16px 20px; background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
#dlg-gen .gen-card-title { display: inline-flex; align-items: center; gap: 6px; color: #1f2937; font-size: 16px; font-weight: 600; }
#dlg-gen .gen-card-title .ico { width: 18px; height: 18px; color: #6366f1; }
#dlg-gen .gen-badge { display: inline-flex; align-items: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; line-height: 1; font-family: Monaco, Consolas, monospace; }
#dlg-gen .gen-game { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 0; padding: 18px 16px 12px; }
#dlg-gen .gen-cover { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid #e9ecef; flex-shrink: 0; display: block; background: #f1f5f9; }
#dlg-gen .gen-game strong { font-size: 16px; line-height: 1.45; color: #2c3e50; font-weight: 600; }
#dlg-gen .gen-game span { color: #6b7280; font-size: 14px; }
#dlg-gen .gen-links { display: flex; justify-content: stretch; align-items: center; gap: 8px; padding: 0 20px 16px; }
#dlg-gen .gen-link { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 1 1 0%; min-width: 0; height: 20px; line-height: 20px; padding: 0 8px; box-sizing: border-box; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 500; text-decoration: none; }
#dlg-gen .gen-link svg { width: 12px; height: 12px; flex: 0 0 auto; }
#dlg-gen .gen-link.is-steam { background: linear-gradient(135deg, #409eff, #3788d8); }
#dlg-gen .gen-link.is-steam:hover { background: linear-gradient(135deg, #66b1ff, #409eff); color: #fff; }
#dlg-gen .gen-link.is-db { background: linear-gradient(135deg, #67c23a, #5daf34); }
#dlg-gen .gen-link.is-db:hover { background: linear-gradient(135deg, #85ce61, #67c23a); color: #fff; }
#dlg-gen .gen-mode-row, #dlg-gen .gen-qty-row { display: flex; align-items: center; gap: 18px; padding: 16px 20px 0; color: #303133; font-size: 14px; }
#dlg-gen .gen-qty-row { display: flex; align-items: center; gap: 12px; padding: 4px 20px 16px; color: #303133; font-size: 14px; }
#dlg-gen .gen-mode-row > span:first-child, #dlg-gen .gen-req { width: 56px; flex: none; text-align: right; }
#dlg-gen .gen-mode { background: #3b82f6; color: #fff; border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 600; line-height: 1; }
#dlg-gen .gen-hint { margin: 10px 20px 8px 20px; padding: 0; color: #909399; font-size: 13px; line-height: 1.8; }
#dlg-gen .gen-req::before { content: "*"; color: #f56c6c; margin-right: 4px; }
#dlg-gen .gen-stepper { position: relative; display: inline-flex; align-items: stretch; flex: 1 1 auto; width: 100%; min-width: 0; height: 40px; line-height: 38px; border-radius: 4px; border: 1px solid #dcdfe6; box-sizing: border-box; box-shadow: none; background: #fff; overflow: hidden; transition: border-color .15s; }
#dlg-gen .gen-stepper:hover:not(:focus-within):not(.is-focus) { border-color: #409eff; }
#dlg-gen .gen-stepper:focus-within, #dlg-gen .gen-stepper.is-focus { border-color: #409eff; box-shadow: none; }
#dlg-gen .gen-stepper button, #dlg-gen .gen-stepper input { height: 38px; border: 0; text-align: center; font-size: 14px; }
#dlg-gen .gen-stepper button { width: 40px; flex: 0 0 40px; cursor: pointer; padding: 0; background: #f5f7fa; color: #606266; display: inline-flex; align-items: center; justify-content: center; }
#dlg-gen .gen-stepper button .ico { width: 14px; height: 14px; }
#dlg-gen .gen-stepper-dec { border-right: 1px solid #dcdfe6; border-radius: 4px 0 0 4px; }
#dlg-gen .gen-stepper-inc { border-left: 1px solid #dcdfe6; border-radius: 0 4px 4px 0; }
#dlg-gen .gen-stepper button:hover { color: #409eff; }
#dlg-gen .gen-stepper button:disabled, #dlg-gen .gen-stepper button.is-disabled { color: #a8abb2; cursor: not-allowed; }
#dlg-gen .gen-stepper input { flex: 1 1 auto; width: auto; min-width: 0; height: 38px; line-height: 38px; padding: 0; margin: 0; background: transparent; color: #606266; outline: none; border: 0; text-align: center; vertical-align: middle; -moz-appearance: textfield; appearance: textfield; }
#dlg-gen .gen-box { position: relative; flex: 1; min-height: 280px; margin: 16px 20px 0; }
#dlg-gen .gen-box textarea { width: 100%; height: 100%; min-height: 280px; box-sizing: border-box; resize: none; border: 1px solid #dcdfe6; border-radius: 10px; padding: 12px; background: #fff; color: #303133; font-size: 12px; line-height: 1.6; outline: none; box-shadow: none; transition: border-color .15s; }
#dlg-gen .gen-box textarea:hover { border-color: #409eff; }
#dlg-gen .gen-box textarea:focus { border-color: #409eff; box-shadow: none; }
#dlg-gen .gen-count { display: none; }
#dlg-gen .gen-copybar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; padding: 0 20px 16px; color: #909399; font-size: 13px; }
#dlg-gen .gen-copybar .btn { height: 28px; padding: 0 12px; border-radius: 4px; font-weight: 400; color: #606266; background: #fff; border: 1px solid var(--line-2); transition: color .15s, border-color .15s, background .15s; }
#dlg-gen .gen-copybar .btn:hover { color: var(--primary); border-color: #c6e2ff; background: #ecf5ff; }
#dlg-gen .gen-ft { background: #f8f9fa; border-top: 0; margin: 0; padding: 16px 24px; }
#dlg-gen .gen-ft .btn { height: 32px; min-width: 68px; border-radius: 8px; font-weight: 500; }
#dlg-gen .gen-submit { background: linear-gradient(135deg, #667eea, #764ba2); border-color: transparent; color: #fff; border-radius: 8px; }
#dlg-gen .gen-submit:hover { background: linear-gradient(135deg, #5a6fd6, #6a4294); border-color: transparent; color: #fff; }
@media (max-width: 760px) {
  #dlg-gen .gen-dialog {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #dlg-gen .dialog-hd { flex: 0 0 auto; }
  #dlg-gen .gen-body {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    overflow: visible;
    padding: 12px 12px 8px;
  }
  #dlg-gen .gen-hint { margin-left: 8px; }
  #dlg-gen .gen-result-card { height: auto; }
  #dlg-gen .gen-box { min-height: 120px; margin-top: 12px; }
  #dlg-gen .gen-box textarea { min-height: 120px; }
  #dlg-gen .gen-ft {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
}

#dlg-user-limit .dialog,
#dlg-auto-auth .dialog,
#dlg-aa-del .dialog { overflow: hidden; border-radius: 8px; }
#dlg-user-limit .dialog-hd,
#dlg-auto-auth .dialog-hd,
#dlg-aa-del .dialog-hd {
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #f0f7ff, #e8f3ff);
}
#dlg-user-limit .dialog-hd h3,
#dlg-auto-auth .dialog-hd h3,
#dlg-aa-del .dialog-hd h3 { font-size: 16px; font-weight: 600; color: #1f2937; }

.agent-msg-mask {
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}
.agent-msg-mask[hidden] { display: none !important; }
.agent-msg-dialog { margin: 0; }
.agent-msg-text {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  margin: 8px 0 4px;
  color: #303133;
}
.agent-msg-text.is-error {
  color: #f56c6c;
  font-weight: 600;
}
.agent-msg-text.is-success {
  color: #67c23a;
  font-weight: 600;
}

/* 新增渠道: empty form => gray OK, no click; logic unchanged when enabled */
#btn-user-ok:disabled,
#btn-user-ok[disabled] {
  background: #c0c4cc;
  border-color: #c0c4cc;
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}
#btn-user-ok:disabled:hover,
#btn-user-ok[disabled]:hover {
  background: #c0c4cc;
  border-color: #c0c4cc;
  color: #fff;
}
