#sys-card-admin {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #eef5fb;
    padding: 12px;
}

.cdk-admin-shell {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    color: #142033;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.cdk-admin-shell *, .cdk-admin-shell *::before, .cdk-admin-shell *::after { box-sizing: border-box; }
.cdk-admin-hidden { display: none !important; }

.cdk-admin-login,
.cdk-admin-dashboard {
    border: 1px solid #d6e2ee;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(32, 59, 88, .1);
}

.cdk-admin-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 32px;
    align-items: center;
    min-height: 300px;
    margin: 8vh auto 0;
    padding: 36px;
}

.cdk-admin-eyebrow {
    margin: 0 0 9px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.cdk-admin-shell h1,
.cdk-admin-shell h2,
.cdk-admin-shell p { margin-top: 0; }
.cdk-admin-shell h1 { margin-bottom: 8px; font-size: 34px; }
.cdk-admin-shell h2 { margin-bottom: 14px; font-size: 23px; }
.cdk-admin-shell p { color: #607086; line-height: 1.65; }

.cdk-admin-login-form,
.cdk-admin-generate,
.cdk-admin-tools,
.cdk-admin-table-card label,
.cdk-admin-dialog form {
    display: grid;
    gap: 8px;
}

.cdk-admin-shell label {
    color: #63748a;
    font-size: 13px;
    font-weight: 800;
}

.cdk-admin-shell input,
.cdk-admin-shell select {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #cbd9e7;
    border-radius: 6px;
    background: #fff;
    color: #142033;
    font: inherit;
    outline: none;
}

.cdk-admin-shell input:focus,
.cdk-admin-shell select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.cdk-admin-shell button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #2f74cf;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.cdk-admin-shell button:hover { border-color: #2563eb; background: #dbeafe; }
.cdk-admin-shell button:disabled { cursor: wait; opacity: .62; }
.cdk-admin-shell .cdk-admin-ghost { background: transparent; }
.cdk-admin-shell .cdk-admin-danger { border-color: #ef476f; background: #fff1f4; color: #be123c; }
.cdk-admin-shell .cdk-admin-danger:hover { background: #ffe1e8; }

.cdk-admin-dashboard { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 16px; }
.cdk-admin-head { flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.cdk-admin-head p { margin-bottom: 0; }

.cdk-admin-generate {
    grid-template-columns: 130px 180px minmax(180px, 1fr) auto;
    align-items: end;
}
.cdk-admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
.cdk-admin-stat { min-height: 66px; padding: 12px; border: 1px solid #d6e2ee; border-radius: 6px; background: #f8fbfe; text-align: center; }
.cdk-admin-stat:first-child { border-color: #2563eb; background: #eff6ff; }
.cdk-admin-stat span { display: block; color: #6b7c90; font-size: 12px; font-weight: 800; }
.cdk-admin-stat strong { display: block; margin-top: 4px; color: #142033; font-size: 20px; }

.cdk-admin-tools { grid-template-columns: minmax(260px, 1fr) 230px; margin-top: 18px; }
.cdk-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 12px 0 20px; }
#cdkSelectedCount { color: #63748a; font-size: 13px; font-weight: 800; }

.cdk-admin-table-card { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.cdk-admin-table-card h2 { flex-shrink: 0; margin-bottom: 12px; }
.cdk-admin-table-wrap { min-height: 0; flex: 1; overflow: auto; border: 1px solid #d6e2ee; border-radius: 8px; }
.cdk-admin-table-wrap table { width: 100%; min-width: 1200px; border-collapse: collapse; }
.cdk-admin-table-wrap th, .cdk-admin-table-wrap td { padding: 11px 12px; border-bottom: 1px solid #dfe8f1; text-align: left; vertical-align: middle; }
.cdk-admin-table-wrap th { color: #63748a; font-size: 12px; white-space: nowrap; }
.cdk-admin-table-wrap th label { min-width: 115px; gap: 5px; }
.cdk-admin-table-wrap th input, .cdk-admin-table-wrap th select { height: 34px; min-width: 0; padding: 0 8px; font-size: 12px; }
.cdk-admin-table-wrap td { font-size: 13px; }
.cdk-admin-table-wrap tr.cdk-card-selected td { background: rgba(37, 99, 235, .11); }
.cdk-admin-table-wrap tbody.cdk-drag-selecting { user-select: none; }

.card-copy-chip { min-height: 34px !important; padding: 0 10px !important; border-color: #93c5fd !important; border-radius: 6px !important; background: #eff6ff !important; color: #1e40af !important; font-family: Consolas, "Courier New", monospace !important; font-size: 12px !important; white-space: nowrap; }
.card-copy-chip:hover, .card-copy-chip:focus-visible { background: #2563eb !important; color: #fff !important; }
.cdk-admin-badge { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.cdk-admin-badge.green { background: #dff7ec; color: #047857; }
.cdk-admin-badge.blue { background: #dbeafe; color: #1d4ed8; }
.cdk-admin-badge.gold { background: #fff4cf; color: #946200; }
.cdk-admin-badge.red { background: #ffe4e8; color: #be123c; }
.cdk-admin-badge.gray { background: #edf2f7; color: #526174; }
.cdk-admin-details { margin-top: 6px; }
.cdk-admin-details summary { color: #1d4ed8; cursor: pointer; font-weight: 800; }
.cdk-admin-sensitive { display: grid; gap: 6px; min-width: 290px; margin-top: 8px; padding: 9px; border: 1px solid #d8e6f5; border-radius: 6px; background: #f8fbff; font-size: 12px; word-break: break-word; }
.cdk-admin-sensitive div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 7px; }
.cdk-admin-sensitive code { padding: 2px 5px; border-radius: 4px; background: #fff; color: #142033; white-space: normal; }

.cdk-admin-dialog { width: min(420px, calc(100vw - 28px)); border: 1px solid #d6e2ee; border-radius: 8px; color: #142033; box-shadow: 0 24px 80px rgba(32,59,88,.22); }
.cdk-admin-dialog::backdrop { background: rgba(15, 23, 42, .42); }
.cdk-admin-dialog form { padding: 22px; }
.cdk-admin-dialog h2, .cdk-admin-dialog p { margin: 0; }
.cdk-admin-dialog form > div { display: flex; justify-content: flex-end; gap: 10px; }
.cdk-admin-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000001; display: none; padding: 12px 18px; border: 1px solid #cbd9e7; border-radius: 99px; background: #fff; color: #142033; box-shadow: 0 18px 50px rgba(0,0,0,.22); font-weight: 900; transform: translateX(-50%); }
.cdk-admin-toast.show { display: block; }

@media (max-width: 900px) {
    #sys-card-admin { height: auto; min-height: 100%; overflow: auto; padding: 10px; }
    .cdk-admin-shell { height: auto; }
    .cdk-admin-login { grid-template-columns: 1fr; min-height: 0; margin-top: 0; padding: 22px; }
    .cdk-admin-dashboard { height: auto; min-height: 100%; padding: 16px; }
    .cdk-admin-head { flex-direction: column; }
    .cdk-admin-generate, .cdk-admin-tools { grid-template-columns: 1fr; }
    .cdk-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdk-admin-table-card { flex: none; }
    .cdk-admin-table-wrap { max-height: 58vh; }
}
