/* ==========================================================================
   后台样式 v5（配合 assets/css/tailwind.css）
   - 支持深色模式（html[data-theme=dark]）
   - 侧边栏可折叠（html[data-side=mini]）
   ========================================================================== */

:root {
    --adm-bg: #f2f5f9;
    --adm-bg-2: #e9eff7;
    --adm-card: #ffffff;
    --adm-card-2: #fafcff;
    --adm-line: #e4eaf2;
    --adm-line-soft: #f0f4f9;
    --adm-text: #0f172a;
    --adm-sub: #5b6b80;
    --adm-hint: #94a3b8;
    --adm-brand: #059669;
    --adm-brand-press: #047857;
    --adm-brand-soft: #ecfdf5;
    --adm-side-bg: #0a1120;
    --adm-side-bg-2: #0e1b2e;
    --adm-side-text: #c7d3e3;
    --adm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px -20px rgba(15, 23, 42, .35);
    --adm-radius: 16px;
    --adm-input-bg: #ffffff;
    --adm-input-line: #d5dee9;
    color-scheme: light;
}

html[data-theme="dark"] {
    --adm-bg: #0a0f1a;
    --adm-bg-2: #0d1524;
    --adm-card: #111a2b;
    --adm-card-2: #162034;
    --adm-line: #1f2b41;
    --adm-line-soft: #1a2537;
    --adm-text: #e6edf7;
    --adm-sub: #9aabc2;
    --adm-hint: #6b7c93;
    --adm-brand: #10b981;
    --adm-brand-press: #34d399;
    --adm-brand-soft: rgba(16, 185, 129, .12);
    --adm-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 32px -24px rgba(0, 0, 0, .8);
    --adm-input-bg: #0e1726;
    --adm-input-line: #263449;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--adm-bg); }

body.adm-body {
    margin: 0;
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background:
        radial-gradient(800px 380px at 8% -6%, rgba(16, 185, 129, .07), transparent 60%),
        radial-gradient(700px 360px at 96% 0%, rgba(59, 130, 246, .07), transparent 55%),
        var(--adm-bg);
    color: var(--adm-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---------- 骨架 ---------- */
.adm-shell { display: flex; min-height: 100vh; }
.adm-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-main { flex: 1; padding: 22px 26px 40px; }

/* ---------- 侧边栏 ---------- */
.adm-side {
    width: 250px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--adm-side-bg) 0%, var(--adm-side-bg-2) 100%);
    color: var(--adm-side-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
    border-right: 1px solid rgba(255, 255, 255, .05);
    transition: width .2s ease;
}
.adm-side-brand {
    display: flex; align-items: center; gap: 11px;
    padding: 20px 18px 14px; min-height: 74px;
}
.adm-side-logo {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff; font-weight: 700; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .9);
}
.adm-side-logo img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.adm-side-name-wrap { min-width: 0; }
.adm-side-name {
    color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.2;
    max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.adm-side-sub { font-size: 11px; color: #7b8aa3; margin-top: 3px; letter-spacing: .1em; }

.adm-nav { padding: 4px 10px 12px; display: grid; gap: 2px; flex: 1; overflow-y: auto; align-content: start; }
.adm-nav::-webkit-scrollbar { width: 6px; }
.adm-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 99px; }
.adm-nav-group {
    font-size: 10.5px; font-weight: 600; color: #61708a; letter-spacing: .1em;
    padding: 14px 12px 6px; text-transform: uppercase;
}
.adm-nav-item {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 10px;
    font-size: 13.5px; color: var(--adm-side-text); text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.adm-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.adm-nav-item.on {
    background: linear-gradient(90deg, rgba(16, 185, 129, .22), rgba(16, 185, 129, .04));
    color: #fff; font-weight: 600;
}
.adm-nav-item.on::before {
    content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0; background: #34d399;
}
.adm-nav-ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .92; }
.adm-nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-nav-badge {
    margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #f59e0b; color: #1c1200; font-size: 10.5px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.adm-side-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 2px; }
.adm-collapse {
    display: flex; align-items: center; gap: 10px; padding: 8px 11px;
    background: none; border: 0; color: #7b8aa3; font-size: 12.5px; cursor: pointer;
    border-radius: 9px; font-family: inherit; text-align: left;
}
.adm-collapse:hover { background: rgba(255, 255, 255, .06); color: #dbe6f5; }
.adm-collapse svg { width: 16px; height: 16px; transition: transform .2s ease; }
.adm-nav-logout { color: #f0a7a7; }
.adm-nav-logout:hover { background: rgba(248, 113, 113, .12); color: #ffd4d4; }

/* 折叠态 */
html[data-side="mini"] .adm-side { width: 74px; }
html[data-side="mini"] .adm-side-name-wrap,
html[data-side="mini"] .adm-nav-label,
html[data-side="mini"] .adm-nav-group,
html[data-side="mini"] .adm-nav-badge { display: none; }
html[data-side="mini"] .adm-side-brand { justify-content: center; padding: 18px 0 14px; }
html[data-side="mini"] .adm-nav-item { justify-content: center; padding: 10px 0; }
html[data-side="mini"] .adm-collapse { justify-content: center; }
html[data-side="mini"] .adm-collapse svg { transform: rotate(180deg); }

.adm-mask { position: fixed; inset: 0; background: rgba(3, 7, 18, .62); z-index: 45; display: none; backdrop-filter: blur(2px); }
.adm-mask.show { display: block; }

@media (max-width: 1023px) {
    .adm-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
    .adm-side.open { transform: translateX(0); }
    html[data-side="mini"] .adm-side { width: 250px; }
    html[data-side="mini"] .adm-side-name-wrap,
    html[data-side="mini"] .adm-nav-label,
    html[data-side="mini"] .adm-nav-group { display: block; }
    .adm-main { padding: 18px 16px 34px; }
}

/* ---------- 顶栏 ---------- */
.adm-top {
    height: 62px;
    background: var(--adm-card);
    background: color-mix(in srgb, var(--adm-card) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--adm-line);
    display: flex; align-items: center; gap: 12px; padding: 0 22px;
    position: sticky; top: 0; z-index: 30;
}
.adm-burger { display: none; padding: 7px; border: 0; background: none; color: var(--adm-sub); cursor: pointer; border-radius: 9px; }
.adm-burger:hover { background: var(--adm-card-2); }
@media (max-width: 1023px) { .adm-burger { display: inline-flex; } }
.adm-top-title { font-size: 16px; font-weight: 650; margin: 0; letter-spacing: -.01em; }

.adm-top-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.adm-search-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 36px; padding: 0 10px 0 11px; border-radius: 10px;
    border: 1px solid var(--adm-line); background: var(--adm-card); color: var(--adm-sub);
    font-size: 12.5px; cursor: pointer; font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.adm-search-btn:hover { border-color: var(--adm-brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, .1); }
.adm-search-btn svg { width: 15px; height: 15px; }
.adm-search-btn kbd {
    font-family: inherit; font-size: 10.5px; color: var(--adm-hint);
    background: var(--adm-card-2); border: 1px solid var(--adm-line);
    border-radius: 5px; padding: 1px 5px;
}
@media (max-width: 900px) {
    .adm-search-btn span, .adm-search-btn kbd { display: none; }
    .adm-search-btn { width: 36px; padding: 0; justify-content: center; }
}
.adm-icon-btn {
    position: relative; width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--adm-line); background: var(--adm-card); color: var(--adm-sub);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.adm-icon-btn:hover { border-color: var(--adm-brand); color: var(--adm-brand); }
.adm-icon-btn svg { width: 17px; height: 17px; }
.adm-bell-dot {
    position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--adm-bg);
}
.ico-sun { display: none; }
html[data-theme="dark"] .ico-sun { display: block; }
html[data-theme="dark"] .ico-moon { display: none; }

.adm-user { display: flex; align-items: center; gap: 9px; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--adm-line); }
.adm-user-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #34d399, #059669); color: #fff;
    font-size: 12.5px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.adm-top-user { display: flex; flex-direction: column; line-height: 1.2; }
.adm-top-user b { font-size: 12.5px; font-weight: 600; }
.adm-top-user a { font-size: 11px; color: var(--adm-hint); text-decoration: none; }
.adm-top-user a:hover { color: #dc2626; }
@media (max-width: 720px) { .adm-top-user { display: none; } .adm-user { border-left: 0; padding-left: 0; } }

.adm-foot {
    padding: 14px 22px 18px; font-size: 11.5px; color: var(--adm-hint);
    border-top: 1px solid var(--adm-line);
}

/* ---------- 卡片 ---------- */
.adm-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-line);
    border-radius: var(--adm-radius);
    box-shadow: var(--adm-shadow);
}
.adm-card.p-5 { padding: 20px; }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-card-head h2 { font-size: 15px; font-weight: 650; margin: 0; display: flex; align-items: center; gap: 8px; }
.adm-card-head h2::before {
    content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--adm-brand);
}
.adm-card-title { font-size: 15px; font-weight: 650; margin: 0 0 12px; }
.adm-sub-title { font-size: 13px; font-weight: 600; color: var(--adm-sub); margin: 18px 0 8px; }
.adm-panel {
    background: var(--adm-card-2); border: 1px solid var(--adm-line);
    border-radius: 13px; padding: 14px;
}

/* ---------- 表单 ---------- */
.adm-label { display: block; font-size: 12.5px; font-weight: 550; color: var(--adm-sub); margin-bottom: 6px; }
:where(.adm-input, .adm-select, .adm-textarea) {
    width: 100%; box-sizing: border-box;
    border: 1px solid var(--adm-input-line);
    border-radius: 10px; padding: 9px 12px;
    font-size: 13.5px; color: var(--adm-text); background: var(--adm-input-bg);
    font-family: inherit; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.adm-input:hover, .adm-select:hover, .adm-textarea:hover { border-color: color-mix(in srgb, var(--adm-input-line) 60%, var(--adm-text)); }
.adm-input:focus, .adm-select:focus, .adm-textarea:focus {
    border-color: var(--adm-brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, .14);
}
.adm-input::placeholder, .adm-textarea::placeholder { color: var(--adm-hint); }
.adm-textarea { line-height: 1.7; resize: vertical; }
.adm-select { padding-right: 30px; }
.adm-file { font-size: 12.5px; color: var(--adm-sub); }
:where(.adm-file) { width: 100%; }
.adm-file::file-selector-button {
    margin-right: 10px; padding: 7px 13px; border: 1px solid var(--adm-input-line);
    border-radius: 9px; background: var(--adm-card-2); font-size: 12.5px; color: var(--adm-text); cursor: pointer;
}
.adm-file::file-selector-button:hover { background: var(--adm-line-soft); }
.adm-hint { font-size: 11.5px; color: var(--adm-hint); margin: 6px 0 0; line-height: 1.65; }
.adm-check, .adm-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--adm-text); cursor: pointer; }
.adm-check input, .adm-radio input { accent-color: var(--adm-brand); }
.adm-radio { padding: 8px 14px; border: 1px solid var(--adm-input-line); border-radius: 10px; transition: border-color .15s ease, background .15s ease; }
.adm-radio:has(input:checked) { border-color: var(--adm-brand); background: var(--adm-brand-soft); color: var(--adm-brand); font-weight: 500; }
.adm-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

.adm-switch-card {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
    border: 1px solid var(--adm-line); border-radius: 12px; background: var(--adm-card-2); cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.adm-switch-card:hover { border-color: color-mix(in srgb, var(--adm-line) 40%, var(--adm-brand)); }
.adm-switch-card:has(input:checked) { border-color: color-mix(in srgb, var(--adm-brand) 45%, var(--adm-line)); background: var(--adm-brand-soft); }
.adm-switch-card input { margin-top: 2px; accent-color: var(--adm-brand); }
.adm-switch-card span { display: flex; flex-direction: column; }
.adm-switch-card b { font-size: 13px; font-weight: 600; }
.adm-switch-card i { font-style: normal; font-size: 11.5px; color: var(--adm-hint); margin-top: 2px; line-height: 1.5; }

/* ---------- 按钮 ---------- */
.adm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 15px; border: 1px solid var(--adm-input-line); border-radius: 10px;
    background: var(--adm-card); color: var(--adm-text); font-size: 13px; font-weight: 500;
    text-decoration: none; cursor: pointer; font-family: inherit;
    white-space: nowrap; flex-shrink: 0;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.adm-btn:hover { background: var(--adm-card-2); border-color: var(--adm-hint); }
.adm-btn:active { transform: translateY(1px); }
.adm-btn-primary {
    background: linear-gradient(180deg, #10b981, #059669); border-color: #059669; color: #fff;
    box-shadow: 0 8px 18px -12px rgba(5, 150, 105, .9);
}
.adm-btn-primary:hover { background: #047857; border-color: #047857; color: #fff; }
.adm-btn-ghost { background: transparent; border-color: var(--adm-line); color: var(--adm-sub); }
.adm-btn-ghost:hover { background: var(--adm-card-2); color: var(--adm-text); }
.adm-btn-danger { background: transparent; border-color: #fca5a5; color: #dc2626; }
.adm-btn-danger:hover { background: rgba(220, 38, 38, .08); border-color: #f87171; }
.adm-btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

/* ---------- 提示 / Toast ---------- */
.adm-alert {
    position: relative; border-radius: 12px; padding: 11px 15px 11px 17px;
    font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; line-height: 1.6;
}
.adm-alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: currentColor; opacity: .5; border-radius: 12px 0 0 12px; }
.adm-alert-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.adm-alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.adm-alert-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
html[data-theme="dark"] .adm-alert-ok { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .3); color: #6ee7b7; }
html[data-theme="dark"] .adm-alert-error { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .32); color: #fca5a5; }
html[data-theme="dark"] .adm-alert-warn { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); color: #fcd34d; }

.adm-toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.adm-toast {
    pointer-events: auto; min-width: 240px; max-width: 380px;
    display: flex; align-items: flex-start; gap: 9px;
    background: var(--adm-card); border: 1px solid var(--adm-line); border-radius: 12px;
    padding: 12px 14px; font-size: 13px; color: var(--adm-text);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, .55);
    animation: admToastIn .26s cubic-bezier(.2, .8, .2, 1);
}
.adm-toast.out { animation: admToastOut .2s ease forwards; }
.adm-toast::before { content: ""; width: 3px; border-radius: 3px; align-self: stretch; background: #10b981; flex-shrink: 0; }
.adm-toast.error::before { background: #ef4444; }
.adm-toast.warn::before { background: #f59e0b; }
@keyframes admToastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes admToastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------- 表格 ---------- */
.adm-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th {
    text-align: left; font-size: 11.5px; font-weight: 600; color: var(--adm-sub);
    padding: 9px 10px; border-bottom: 1px solid var(--adm-line); white-space: nowrap;
}
.adm-table td { padding: 11px 10px; border-bottom: 1px solid var(--adm-line-soft); vertical-align: middle; color: var(--adm-text); }
.adm-table tbody tr { transition: background .12s ease; }
.adm-table tbody tr:hover { background: var(--adm-card-2); }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-app-cell { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.adm-app-cell img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: var(--adm-line-soft); flex-shrink: 0; }
.adm-app-cell span { display: flex; flex-direction: column; min-width: 0; }
.adm-app-cell b { font-weight: 600; color: var(--adm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.adm-app-cell i { font-style: normal; font-size: 11.5px; color: var(--adm-hint); margin-top: 1px; }
.adm-app-cell:hover b { color: var(--adm-brand); }

.adm-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.adm-tag-android { background: #ecfdf5; color: #047857; }
.adm-tag-ios { background: #eff6ff; color: #1d4ed8; }
.adm-tag-both { background: var(--adm-line-soft); color: var(--adm-sub); }
html[data-theme="dark"] .adm-tag-android { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
html[data-theme="dark"] .adm-tag-ios { background: rgba(59, 130, 246, .16); color: #93c5fd; }

.adm-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.adm-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.adm-badge-ok { background: #dcfce7; color: #15803d; }
.adm-badge-off { background: var(--adm-line-soft); color: var(--adm-sub); }
.adm-badge-rec { background: #fef3c7; color: #b45309; }
.adm-badge-err { background: #fee2e2; color: #b91c1c; }
html[data-theme="dark"] .adm-badge-ok { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
html[data-theme="dark"] .adm-badge-err { background: rgba(239, 68, 68, .16); color: #fca5a5; }
html[data-theme="dark"] .adm-badge-rec { background: rgba(245, 158, 11, .16); color: #fcd34d; }

.adm-link { background: none; border: 0; padding: 0; font-size: 12.5px; color: var(--adm-brand); cursor: pointer; text-decoration: none; font-family: inherit; margin-left: 12px; font-weight: 500; }
.adm-link:first-child { margin-left: 0; }
.adm-link:hover { text-decoration: underline; }
.adm-link-danger { color: #dc2626; }
html[data-theme="dark"] .adm-link-danger { color: #f87171; }

/* ---------- 分页 ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 16px 0 4px; }
.pager a, .pager span {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px;
    border: 1px solid var(--adm-line); display: inline-flex; align-items: center; justify-content: center;
    font-size: 12.5px; color: var(--adm-sub); text-decoration: none; background: var(--adm-card);
}
.pager a:hover { border-color: var(--adm-brand); color: var(--adm-brand); }
.pager .cur { background: var(--adm-brand); border-color: var(--adm-brand); color: #fff; font-weight: 600; }
.pager .dots { border: 0; background: none; color: var(--adm-hint); }

/* ---------- 标签 / 筛选 ---------- */
.adm-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--adm-line); padding-bottom: 2px; }
.adm-tabs a {
    padding: 9px 14px; font-size: 13px; color: var(--adm-sub); text-decoration: none;
    border-radius: 9px 9px 0 0; border-bottom: 2px solid transparent; margin-bottom: -3px;
}
.adm-tabs a:hover { color: var(--adm-text); background: var(--adm-card-2); }
.adm-tabs a.on { color: var(--adm-brand); border-bottom-color: var(--adm-brand); font-weight: 600; }
.adm-chip {
    display: inline-flex; align-items: center; height: 28px; padding: 0 11px;
    border-radius: 999px; border: 1px solid var(--adm-line); background: var(--adm-card);
    font-size: 12px; color: var(--adm-sub); text-decoration: none;
}
.adm-chip:hover { border-color: var(--adm-brand); color: var(--adm-brand); }
.adm-chip.on { background: var(--adm-brand-soft); border-color: color-mix(in srgb, var(--adm-brand) 40%, transparent); color: var(--adm-brand); font-weight: 600; }

.adm-mini-stat {
    background: var(--adm-card-2); border: 1px solid var(--adm-line); border-radius: 12px;
    padding: 12px 14px; display: flex; flex-direction: column; gap: 2px;
}
.adm-mini-stat span { font-size: 11.5px; color: var(--adm-hint); }
.adm-mini-stat b { font-size: 19px; letter-spacing: -.02em; }

.adm-copy-row { display: flex; gap: 8px; }
.adm-copy-row .adm-input { flex: 1; }
.adm-env-pill {
    display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px;
    border-radius: 999px; font-size: 11.5px; background: var(--adm-line-soft); color: var(--adm-sub);
}
.adm-env-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d97706; }
.adm-env-pill.ok { background: #ecfdf5; color: #047857; }
.adm-env-pill.ok::before { background: #10b981; }
html[data-theme="dark"] .adm-env-pill.ok { background: rgba(16, 185, 129, .14); color: #6ee7b7; }

/* ---------- 图片 / 文件预览 ---------- */
.adm-file-preview { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.adm-file-preview img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--adm-line-soft); border: 1px solid var(--adm-line); }
.adm-file-preview img.wide { width: 132px; height: 54px; border-radius: 10px; }
.adm-file-name { font-size: 12px; color: var(--adm-sub); background: var(--adm-line-soft); padding: 5px 10px; border-radius: 8px; word-break: break-all; }
.adm-shots { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.adm-shot-item { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
.adm-shot-item img { width: 74px; height: 132px; object-fit: cover; border-radius: 10px; border: 1px solid var(--adm-line); background: var(--adm-line-soft); }
.adm-shot-del { font-size: 11.5px; color: var(--adm-sub); display: flex; align-items: center; gap: 4px; }
.adm-banner-item { display: flex; gap: 14px; align-items: flex-start; padding: 13px; border: 1px solid var(--adm-line); border-radius: 13px; background: var(--adm-card-2); }
.adm-banner-thumb { width: 150px; height: 64px; object-fit: cover; border-radius: 9px; background: var(--adm-line); flex-shrink: 0; }
@media (max-width: 640px) {
    .adm-banner-item { flex-direction: column; }
    .adm-banner-thumb { width: 100%; height: 92px; }
}

/* ---------- 其它 ---------- */
.adm-captcha { height: 40px; width: 120px; border-radius: 9px; border: 1px solid var(--adm-input-line); background: var(--adm-card-2); cursor: pointer; object-fit: cover; }
.adm-kv { margin: 0; }
.adm-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--adm-line-soft); font-size: 13px; }
.adm-kv > div:last-child { border-bottom: 0; }
.adm-kv dt { color: var(--adm-sub); }
.adm-kv dd { margin: 0; color: var(--adm-text); text-align: right; }
.adm-fail-list { list-style: none; margin: 0; padding: 0; }
.adm-fail-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--adm-line-soft); font-size: 12.5px; color: var(--adm-text); }
.adm-fail-list li:last-child { border-bottom: 0; }

/* ---------- 空状态 ---------- */
.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 46px 16px; text-align: center; }
.adm-empty-ico {
    width: 46px; height: 46px; border-radius: 14px; margin-bottom: 3px;
    background: var(--adm-brand-soft); color: var(--adm-brand);
    display: flex; align-items: center; justify-content: center;
}
.adm-empty-ico svg { width: 22px; height: 22px; }
.adm-empty b { font-size: 13.5px; font-weight: 600; }
.adm-empty span { font-size: 12px; color: var(--adm-hint); max-width: 360px; line-height: 1.65; }

/* ---------- 仪表盘 ---------- */
.adm-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.adm-page-head h1 { font-size: 22px; margin: 0 0 5px; letter-spacing: -.02em; font-weight: 680; }
.adm-page-head p { margin: 0; font-size: 13px; color: var(--adm-sub); }
.adm-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.adm-kpi {
    position: relative; overflow: hidden;
    background: var(--adm-card); border: 1px solid var(--adm-line); border-radius: 15px;
    padding: 15px 16px; box-shadow: var(--adm-shadow);
}
.adm-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm-kpi-label { font-size: 12px; color: var(--adm-sub); }
.adm-kpi-ico { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adm-kpi-ico svg { width: 17px; height: 17px; }
.ic-green { background: #ecfdf5; color: #059669; }
.ic-blue { background: #eff6ff; color: #2563eb; }
.ic-amber { background: #fffbeb; color: #d97706; }
.ic-violet { background: #f5f3ff; color: #7c3aed; }
html[data-theme="dark"] .ic-green { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
html[data-theme="dark"] .ic-blue { background: rgba(59, 130, 246, .16); color: #93c5fd; }
html[data-theme="dark"] .ic-amber { background: rgba(245, 158, 11, .16); color: #fcd34d; }
html[data-theme="dark"] .ic-violet { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
.adm-kpi-val { font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin-top: 6px; }
.adm-kpi-sub { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--adm-hint); margin-top: 4px; }
.adm-delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.adm-delta.up { color: #dc2626; }
.adm-delta.down { color: #059669; }
.adm-delta.flat { color: var(--adm-hint); }
html[data-theme="dark"] .adm-delta.up { color: #f87171; }
html[data-theme="dark"] .adm-delta.down { color: #34d399; }
@media (max-width: 1100px) { .adm-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .adm-kpis { grid-template-columns: 1fr; } }

.adm-dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 980px) { .adm-dash-grid { grid-template-columns: 1fr; } }

.adm-chart { width: 100%; height: 210px; display: block; }
.adm-chart-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--adm-hint); margin-top: 4px; }
.adm-chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--adm-sub); }
.adm-chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }

.adm-donut-wrap { display: flex; align-items: center; gap: 18px; }
.adm-donut {
    width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; position: relative;
    background: conic-gradient(#10b981 0 var(--a), #6366f1 var(--a) 100%);
}
.adm-donut::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--adm-card); }
.adm-donut-center {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    z-index: 2;
}
.adm-donut-center b { font-size: 20px; letter-spacing: -.02em; }
.adm-donut-center span { font-size: 10.5px; color: var(--adm-hint); }
.adm-legend { display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.adm-legend div { display: flex; align-items: center; gap: 8px; }
.adm-legend i { width: 9px; height: 9px; border-radius: 3px; }
.adm-legend b { margin-left: auto; font-weight: 600; }

.adm-insight { display: flex; flex-direction: column; gap: 8px; }
.adm-insight-item {
    display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px;
    border: 1px solid var(--adm-line); border-radius: 12px; background: var(--adm-card-2);
    text-decoration: none; color: inherit;
    transition: border-color .15s ease, transform .1s ease;
}
.adm-insight-item:hover { border-color: var(--adm-brand); }
.adm-insight-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: #f59e0b; }
.adm-insight-item.ok .adm-insight-dot { background: #10b981; }
.adm-insight-item.err .adm-insight-dot { background: #ef4444; }
.adm-insight-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-insight-body b { font-size: 12.5px; font-weight: 600; }
.adm-insight-body span { font-size: 11.5px; color: var(--adm-hint); line-height: 1.5; }

.adm-activity { list-style: none; margin: 0; padding: 0; }
.adm-activity li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--adm-line-soft); }
.adm-activity li:last-child { border-bottom: 0; }
.adm-activity img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--adm-line-soft); }
.adm-activity .a-main { display: flex; flex-direction: column; min-width: 0; }
.adm-activity .a-main b { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-activity .a-main span { font-size: 11px; color: var(--adm-hint); }
.adm-activity .a-time { margin-left: auto; font-size: 10.5px; color: var(--adm-hint); white-space: nowrap; }
.adm-activity .a-ico {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9.5px; font-weight: 700; letter-spacing: .02em;
}

/* 三格小指标条 */
.adm-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm-mini > div {
    background: var(--adm-card-2); border: 1px solid var(--adm-line);
    border-radius: 10px; padding: 9px 11px;
    display: flex; flex-direction: column; gap: 2px;
}
.adm-mini > div span { font-size: 11px; color: var(--adm-hint); }
.adm-mini > div b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }

/* 站点健康度 */
.adm-health { margin-top: 12px; padding: 12px 13px; border: 1px solid var(--adm-line); border-radius: 12px; background: var(--adm-card-2); }
.adm-health-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; color: var(--adm-sub); }
.adm-health-top b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #059669; }
.adm-health-top b.warn { color: #d97706; }
.adm-health-top b.bad { color: #dc2626; }
.adm-health-top b i { font-style: normal; font-size: 10.5px; font-weight: 500; margin-left: 1px; opacity: .7; }
.adm-health-bar { height: 6px; border-radius: 4px; background: var(--adm-line); margin: 8px 0 7px; overflow: hidden; }
.adm-health-bar span { display: block; height: 100%; border-radius: 4px; transition: width .4s ease; }
.adm-health-bar span.ok { background: linear-gradient(90deg, #34d399, #059669); }
.adm-health-bar span.warn { background: linear-gradient(90deg, #fbbf24, #d97706); }
.adm-health-bar span.bad { background: linear-gradient(90deg, #f87171, #dc2626); }
.adm-health-sub { font-size: 11.5px; color: var(--adm-hint); line-height: 1.5; }

.adm-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.adm-quick a {
    display: flex; align-items: center; gap: 9px; padding: 11px 12px;
    border: 1px solid var(--adm-line); border-radius: 11px; background: var(--adm-card-2);
    font-size: 12.5px; color: var(--adm-text); text-decoration: none;
}
.adm-quick a:hover { border-color: var(--adm-brand); color: var(--adm-brand); }
.adm-quick svg { width: 16px; height: 16px; color: var(--adm-brand); }

/* ---------- 命令面板 ---------- */
.adm-cmd { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.adm-cmd[hidden] { display: none; }
.adm-cmd-mask { position: absolute; inset: 0; background: rgba(6, 12, 24, .55); backdrop-filter: blur(3px); }
.adm-cmd-box {
    position: relative; width: min(560px, 92vw); background: var(--adm-card);
    border: 1px solid var(--adm-line); border-radius: 16px; overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(2, 8, 23, .7);
    animation: admCmdIn .18s ease;
}
@keyframes admCmdIn { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.adm-cmd-input { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid var(--adm-line); }
.adm-cmd-input svg { width: 17px; height: 17px; color: var(--adm-hint); }
.adm-cmd-input input { flex: 1; border: 0; outline: none; background: none; font-size: 14.5px; color: var(--adm-text); font-family: inherit; }
.adm-cmd-input kbd { font-family: inherit; font-size: 10px; color: var(--adm-hint); border: 1px solid var(--adm-line); border-radius: 5px; padding: 1px 5px; }
.adm-cmd-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.adm-cmd-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
    font-size: 13px; color: var(--adm-text); text-decoration: none; cursor: pointer;
}
.adm-cmd-item.on, .adm-cmd-item:hover { background: var(--adm-brand-soft); color: var(--adm-brand); }
.adm-cmd-item em { font-style: normal; margin-left: auto; font-size: 10.5px; color: var(--adm-hint); }
.adm-cmd-empty { padding: 22px; text-align: center; font-size: 12.5px; color: var(--adm-hint); }

/* ---------- H5 封装 ---------- */
.adm-color { width: 100%; max-width: 104px; height: 40px; padding: 4px; border: 1px solid var(--adm-input-line); border-radius: 10px; background: var(--adm-card); cursor: pointer; }
.h5-env-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 8px; }
.h5-env-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--adm-line); background: var(--adm-card-2); min-width: 0; }
.h5-env-item.ok { background: color-mix(in srgb, #10b981 8%, var(--adm-card)); border-color: color-mix(in srgb, #10b981 28%, var(--adm-line)); }
.h5-env-item.bad { background: color-mix(in srgb, #f59e0b 8%, var(--adm-card)); border-color: color-mix(in srgb, #f59e0b 28%, var(--adm-line)); }
.h5-env-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: #059669; box-shadow: 0 0 0 3px rgba(5, 150, 105, .12); }
.h5-env-item.bad .h5-env-dot { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .14); }
.h5-env-item b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.h5-env-item i { display: block; font-style: normal; font-size: 11px; color: var(--adm-hint); margin-top: 2px; line-height: 1.45; word-break: break-all; }
.h5-details { border: 1px solid var(--adm-line); border-radius: 10px; padding: 9px 13px; background: var(--adm-card-2); }
.h5-details > summary { cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--adm-text); list-style: none; display: flex; align-items: center; gap: 6px; }
.h5-details > summary::-webkit-details-marker { display: none; }
.h5-details > summary::before { content: "▸"; font-size: 10px; color: var(--adm-hint); transition: transform .15s ease; }
.h5-details[open] > summary::before { transform: rotate(90deg); }
.h5-code { margin: 10px 0 0; padding: 11px; border-radius: 8px; background: #0b1220; color: #cbd5e1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.65; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.h5-details code { background: var(--adm-line-soft); color: var(--adm-text); padding: 1px 5px; border-radius: 5px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; }
.h5-log { max-height: 340px; overflow-y: auto; }
.h5-progress { height: 7px; border-radius: 99px; background: var(--adm-line-soft); overflow: hidden; }
.h5-progress > span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #34d399, #059669); transition: width .4s ease; }
.h5-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--adm-line-soft); }
.h5-meta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h5-meta span { font-size: 11px; color: var(--adm-hint); }
.h5-meta b { font-size: 13px; font-weight: 600; word-break: break-all; }
.h5-steps { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--adm-sub); line-height: 1.9; }

/* ---------- APP 采集 ---------- */
.adm-hero-card { padding: 22px; }
.adm-hero-text h2 { font-size: 18px; margin: 0 0 6px; letter-spacing: -.02em; }
.adm-hero-text p { margin: 0 0 16px; font-size: 12.5px; color: var(--adm-sub); line-height: 1.7; max-width: 720px; }
.cl-searchbar { display: flex; flex-direction: column; gap: 12px; }
.cl-src-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-src {
    display: flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 11px;
    border: 1px solid var(--adm-line); background: var(--adm-card-2); cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.cl-src input { display: none; }
.cl-src.on { border-color: var(--adm-brand); background: var(--adm-brand-soft); }
.cl-src-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cl-src b { display: block; font-size: 12.5px; }
.cl-src i { display: block; font-style: normal; font-size: 10.5px; color: var(--adm-hint); }
.cl-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-search-input {
    flex: 1; min-width: 240px; display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--adm-input-line); border-radius: 11px; padding: 0 12px;
    background: var(--adm-input-bg);
}
.cl-search-input svg { color: var(--adm-hint); flex-shrink: 0; }
.cl-search-input input { flex: 1; border: 0; outline: none; background: none; height: 42px; font-size: 13.5px; color: var(--adm-text); font-family: inherit; }
.cl-search-input:focus-within { border-color: var(--adm-brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, .13); }
.cl-limit { width: 108px; flex-shrink: 0; }
.cl-hot { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: 11.5px; color: var(--adm-hint); }
.cl-hot a { color: var(--adm-sub); text-decoration: none; padding: 2px 9px; border-radius: 999px; background: var(--adm-card-2); border: 1px solid var(--adm-line); }
.cl-hot a:hover { color: var(--adm-brand); border-color: var(--adm-brand); }

.cl-count { font-size: 11px; color: var(--adm-sub); background: var(--adm-line-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 10px; }
.cl-card {
    position: relative; display: flex; gap: 12px; padding: 12px;
    border: 1px solid var(--adm-line); border-radius: 13px; background: var(--adm-card-2);
    cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.cl-card:hover { border-color: color-mix(in srgb, var(--adm-brand) 45%, var(--adm-line)); }
.cl-card:has(.cl-checkbox:checked) { border-color: var(--adm-brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, .1); }
.cl-card.is-exists { opacity: .62; cursor: default; }
.cl-checkbox { position: absolute; opacity: 0; pointer-events: none; }
.cl-checkmark {
    position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 6px;
    border: 1.5px solid var(--adm-input-line); background: var(--adm-card);
}
.cl-card:has(.cl-checkbox:checked) .cl-checkmark { background: var(--adm-brand); border-color: var(--adm-brand); }
.cl-card:has(.cl-checkbox:checked) .cl-checkmark::after {
    content: "✓"; position: absolute; inset: 0; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center;
}
.cl-thumb { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; background: var(--adm-line-soft); flex-shrink: 0; }
.cl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-title { display: flex; align-items: center; gap: 6px; padding-right: 22px; }
.cl-title b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-badge, .cl-badge-new { font-size: 10px; padding: 1px 6px; border-radius: 999px; flex-shrink: 0; }
.cl-badge { background: var(--adm-line-soft); color: var(--adm-sub); }
.cl-badge-new { background: #ecfdf5; color: #047857; }
html[data-theme="dark"] .cl-badge-new { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
.cl-dev { margin: 0; font-size: 11px; color: var(--adm-hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10.5px; color: var(--adm-sub); }
.cl-star { color: #d97706; }
.cl-cat { margin-top: 5px; height: 32px; font-size: 12px; padding: 0 8px; }

.cl-actionbar {
    position: sticky; bottom: 14px; z-index: 20; margin-top: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    background: var(--adm-card);
    background: color-mix(in srgb, var(--adm-card) 92%, transparent); backdrop-filter: blur(10px);
    border: 1px solid var(--adm-line); border-radius: 14px; padding: 12px 16px;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .6);
}
.cl-actionbar-info { font-size: 12.5px; color: var(--adm-sub); }
.cl-actionbar-info b { font-size: 18px; color: var(--adm-brand); margin-right: 2px; }
.cl-actionbar-info span { margin-left: 8px; color: var(--adm-hint); font-size: 11.5px; }
.cl-steps { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--adm-sub); line-height: 1.9; list-style: decimal; }
@media (min-width: 980px) {
    .cl-steps {
        display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto;
        grid-auto-flow: column; gap: 2px 24px; padding-left: 0;
        list-style-position: inside;
    }
}
.cl-recent { display: flex; flex-direction: column; gap: 2px; }
.cl-recent a { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; color: inherit; border-bottom: 1px dashed var(--adm-line-soft); }
.cl-recent a:last-child { border-bottom: 0; }
.cl-recent img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; background: var(--adm-line-soft); }
.cl-recent span { display: flex; flex-direction: column; }
.cl-recent b { font-size: 12.5px; font-weight: 500; }
.cl-recent i { font-style: normal; font-size: 10.5px; color: var(--adm-hint); }

/* ---------- 登录页 ---------- */
.adm-login-body {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
    background:
        radial-gradient(900px 460px at 50% -10%, #d9f2e7 0%, rgba(217, 242, 231, 0) 65%),
        radial-gradient(600px 340px at 90% 100%, #e4ecff 0%, rgba(228, 236, 255, 0) 60%),
        var(--adm-bg);
    margin: 0;
    font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--adm-text);
}
html[data-theme="dark"] .adm-login-body { background: radial-gradient(900px 460px at 50% -10%, rgba(16, 185, 129, .16), transparent 60%), var(--adm-bg); }
.adm-login-card {
    width: 100%; max-width: 400px; background: var(--adm-card); border: 1px solid var(--adm-line);
    border-radius: 20px; padding: 30px 28px; box-shadow: 0 30px 60px -40px rgba(15, 23, 42, .6);
}
.adm-login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 22px; }
.adm-login-logo {
    width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #34d399, #059669);
    color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -12px rgba(5, 150, 105, .9);
}
.adm-login-title { font-size: 18px; font-weight: 650; margin: 14px 0 4px; }
.adm-login-sub { font-size: 12.5px; color: var(--adm-sub); margin: 0; }
.adm-login-foot { text-align: center; font-size: 11.5px; color: var(--adm-hint); margin-top: 16px; }
.adm-login-foot a { color: var(--adm-sub); text-decoration: none; }
.adm-login-foot a:hover { color: var(--adm-brand); }

/* ---------- 兼容旧页面 / 补齐未编译的工具类 ---------- */
.adm-stat {
    background: var(--adm-card); border: 1px solid var(--adm-line); border-radius: 14px;
    padding: 14px 16px; box-shadow: var(--adm-shadow);
}
.adm-stat-label { font-size: 12px; color: var(--adm-sub); }
.adm-stat-val { font-size: 24px; font-weight: 700; letter-spacing: -.025em; margin-top: 4px; }
.adm-stat-sub { font-size: 11.5px; color: var(--adm-hint); margin-top: 3px; }

.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.w-44 { width: 11rem; }
.text-\[13px\] { font-size: 13px; }
.max-w-\[260px\] { max-width: 260px; }
.min-w-\[140px\] { min-width: 140px; }
.min-w-\[160px\] { min-width: 160px; }
