/* Administrator views; never shared with the public download card layout. */
.admin-operations{min-width:0}.admin-operations table{width:100%;min-width:900px;font-size:14px}.admin-operations td,.admin-operations th{padding:14px 12px;vertical-align:top}.admin-operations td{overflow-wrap:anywhere}.admin-operations .wide-table{overflow-x:auto}.ops-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin-bottom:22px}.ops-filters>.input{width:160px}.ops-filters>input{width:220px}.ops-filters>label{font-size:12px;color:var(--muted);margin:0}.ops-filters>label input{display:block;width:145px;margin-top:4px}.ops-filters .btn{min-height:40px}.log-agent{display:block;max-width:250px;white-space:normal;font-size:12px;line-height:1.5;color:var(--muted);margin-top:6px}.ops-plan-description{min-width:180px;max-width:340px;line-height:1.7;white-space:normal}.admin-ops-dialog{width:min(820px,94vw);max-height:90vh;padding:24px;border:1px solid var(--line);border-radius:16px;color:var(--text);overflow:auto}.admin-ops-dialog::backdrop{background:rgba(10,30,24,.4)}.admin-ops-dialog>.section-head{position:sticky;top:-24px;background:white;z-index:2;margin:-24px -24px 20px;padding:18px 24px;border-bottom:1px solid var(--line)}.ops-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.ops-form-grid label{margin:0}.admin-ops-dialog label{font-size:14px;display:block}.admin-ops-dialog .input{margin:7px 0 12px}.ops-form-grid [hidden]{display:none!important}.admin-ops-body h3{margin:22px 0 10px}.ops-description{white-space:pre-wrap;overflow-wrap:anywhere}.ops-detail{margin:0}.ops-detail>div{display:flex;gap:20px;border-bottom:1px solid var(--line);padding:10px 0;font-size:14px}.ops-detail dt{width:100px;flex:none;color:var(--muted)}.ops-detail dd{margin:0;overflow-wrap:anywhere}.admin-ops-dialog .ops-checkbox{display:flex;gap:10px;align-items:center;margin:12px 0}.admin-ops-dialog [role=alert]{color:#c64247;margin:10px 0}.admin-operations [aria-busy=true]{opacity:.65}.admin-operations .notice{margin:20px 0}.ops-filters input:focus,.ops-filters select:focus{outline:2px solid #069e7650;outline-offset:2px}
@media(max-width:700px){.ops-form-grid{grid-template-columns:1fr}.admin-ops-dialog{padding:18px}.admin-ops-dialog>.section-head{top:-18px;margin:-18px -18px 16px;padding:14px 18px}.ops-filters>.input,.ops-filters>label{width:100%}.ops-filters>label input{width:100%}.admin-dash .dashmain{min-width:0}.ops-detail{font-size:13px}.ops-detail dt{width:72px}}

/* v56.9.13: compact log-management table, aligned with 内测虎 admin styling. */
.admin-log-table table{min-width:1180px}
.admin-log-table th:nth-child(1){width:110px}
.admin-log-table th:nth-child(2){min-width:250px}
.admin-log-table th:nth-child(3){width:140px}
.admin-log-table th:nth-child(4){width:150px}
.admin-log-table th:nth-child(5){width:170px}
.admin-log-table th:nth-child(6){min-width:220px}
.admin-log-table th:nth-child(7){width:110px}
.admin-log-table th:nth-child(8){width:84px}
.log-scene{display:inline-flex;align-items:center;min-height:26px;padding:3px 8px;border-radius:999px;background:#edf8f3;color:#087d5f;font-weight:650;white-space:nowrap}
.log-note{display:block;font-size:13px;color:var(--text);line-height:1.45}
.admin-log-dialog .ops-detail dt{width:120px}
@media(max-width:760px){.admin-log-table table{min-width:1040px}.admin-log-dialog .ops-detail dt{width:88px}}

/* v56.9.14: focused activity log (login + app upload/update/delete only). */
.admin-log-table table{min-width:1040px}
.admin-log-table th:nth-child(1){width:110px}
.admin-log-table th:nth-child(2){min-width:260px}
.admin-log-table th:nth-child(3){width:140px}
.admin-log-table th:nth-child(4){width:150px}
.admin-log-table th:nth-child(5){width:170px}
.admin-log-table th:nth-child(6){min-width:220px}
.admin-log-table th:nth-child(7){width:84px}

/* Fix100: persistent recharge fraud-control console. */
.risk-summary{margin-bottom:22px}.risk-settings-card{margin-bottom:22px}.risk-settings-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px 18px}.risk-settings-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650}.risk-settings-grid label small{font-weight:400;color:var(--muted);line-height:1.45}.risk-settings-grid .input{margin:0}.risk-settings-actions{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:4px}.risk-settings-grid>.error{grid-column:1/-1;margin:0}.risk-hold-table table{min-width:1180px}.risk-log-table table{min-width:1260px}.risk-reason{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#fff3dc;color:#9a5a00;font-size:12px;font-weight:750;white-space:nowrap;margin:0 5px 4px 0}.risk-status-pending{background:#fff3dc!important;color:#8a5600!important}.risk-status-approved{background:#e9f8f1!important;color:#087d5f!important}.risk-status-rejected{background:#fff0f0!important;color:#b83238!important}.risk-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:220px}.risk-log-detail{display:block;min-width:220px;max-width:420px;white-space:normal;line-height:1.55}.risk-hold-table .order-id,.risk-log-table .order-id{display:block;margin-top:4px}
@media(max-width:1100px){.risk-settings-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:700px){.risk-settings-grid{grid-template-columns:1fr}.risk-settings-actions{align-items:stretch;flex-direction:column}.risk-settings-actions .btn{width:100%}}

/* Shared update dialog for application management and direct-link logs. */
.admin-package-update{width:min(620px,calc(100vw - 32px));max-height:90dvh;box-sizing:border-box;background:#fff;color:#173d34}
.admin-package-update .admin-ops-body{color:#173d34;overflow-wrap:anywhere}
.admin-package-update .admin-ops-body p{color:#5b746c;line-height:1.65}
.admin-package-update .admin-ops-body [role="alert"]{color:#c73737}
.admin-package-update .admin-ops-body [role="alert"]:empty{display:none}
.admin-package-picker{display:flex;align-items:center;gap:14px;padding:16px;border:1px dashed #b9d5c9;border-radius:12px;background:#f6faf8;margin:18px 0}
.admin-package-file{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;padding:10px 16px;background:#fff;border:1px solid #c8ded3;border-radius:8px;color:#087d5f;font-weight:650;cursor:pointer;overflow:hidden}
.admin-package-file input[type="file"]{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}
.admin-package-file:focus-within{outline:2px solid #079b75;outline-offset:3px}
.admin-package-file:has(input:disabled){opacity:.55;cursor:wait}
.admin-package-picker [data-filename]{min-width:0;overflow-wrap:anywhere;font-size:14px;color:#526d63}
.admin-package-progress{padding:16px;background:#f2f8f5;border:1px solid #dcebe3;border-radius:12px;margin:16px 0}
.admin-package-progress[hidden]{display:none}
.admin-package-progress-heading{display:flex;justify-content:space-between;gap:16px;margin-bottom:10px;align-items:center;font-size:14px}
.admin-package-progress-heading strong{color:#087d5f;font-variant-numeric:tabular-nums;flex:none}
.admin-package-progress progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:10px;border:none;border-radius:999px;overflow:hidden;background:#dcebe3}
.admin-package-progress progress::-webkit-progress-bar{background:#dcebe3;border-radius:999px}
.admin-package-progress progress::-webkit-progress-value{background:#069d77;border-radius:999px}
.admin-package-progress progress::-moz-progress-bar{background:#069d77;border-radius:999px}
.admin-package-progress small{display:block;margin-top:8px;color:#60796f;font-variant-numeric:tabular-nums}
.admin-package-update [data-preview]{font-size:14px;line-height:1.6;margin:12px 0;color:#355f50}
@media(max-width:480px){.admin-package-picker{align-items:flex-start;flex-direction:column}.admin-package-update .section-head h2{font-size:22px}}

.admin-package-update [data-update-close][hidden]{display:none!important}

/* Compact administrator workspace. Public pages retain their own sizing. */
body:has(.admin-dash) :is(.admin-dash,dialog){font-size:13px;line-height:1.5}
body:has(.admin-dash) :is(.admin-dash,.admin-top,dialog) .btn{min-height:32px;padding:6px 12px;border-radius:7px;font-size:13px;line-height:18px;box-shadow:none;gap:6px}
body:has(.admin-dash) .admin-dash td .btn{min-height:28px;padding:4px 9px;font-size:12px}
body:has(.admin-dash) :is(.admin-dash,dialog) .input{min-height:34px;padding:7px 10px;border-radius:6px;font-size:13px;line-height:18px}
body:has(.admin-dash) :is(.admin-dash,dialog) textarea.input{min-height:80px}
body:has(.admin-dash) dialog{border-radius:12px;box-sizing:border-box;max-height:calc(100dvh - 32px);font-size:13px}
body:has(.admin-dash) dialog::backdrop{background:rgba(20,32,29,.38);backdrop-filter:blur(2px)}
body:has(.admin-dash) dialog h2{font-size:20px;line-height:28px;letter-spacing:0;margin:0}
body:has(.admin-dash) dialog h3{font-size:15px;line-height:22px;margin:16px 0 10px}
body:has(.admin-dash) dialog p{font-size:13px;line-height:1.6;margin:10px 0}
body:has(.admin-dash) dialog .small{font-size:12px;line-height:1.5}
body:has(.admin-dash) dialog :is(header,.section-head) [data-close]{width:28px;height:28px;min-height:28px;padding:0;flex:0 0 28px;border-radius:50%;font-size:18px;font-weight:400;display:inline-flex;align-items:center;justify-content:center}
body:has(.admin-dash) .admin-ops-dialog{padding:18px;width:min(760px,calc(100vw - 32px))}
body:has(.admin-dash) .admin-ops-dialog>.section-head{top:-18px;margin:-18px -18px 16px;padding:12px 18px;gap:12px}
body:has(.admin-dash) .admin-package-update{width:min(560px,calc(100vw - 32px))}
body:has(.admin-dash) .admin-package-update .admin-ops-body>h3{margin-top:0;font-size:16px}
body:has(.admin-dash) .admin-package-picker{gap:10px;padding:12px;margin:14px 0;border-radius:8px}
body:has(.admin-dash) .admin-package-file{padding:7px 11px;font-size:13px;border-radius:6px}
body:has(.admin-dash) .admin-package-progress{padding:12px;margin:12px 0;border-radius:8px}
body:has(.admin-dash) .admin-package-update [data-preview]{font-size:13px;margin:10px 0}
body:has(.admin-dash) .admin-package-update .actions{display:flex;gap:8px;margin-top:12px}
body:has(.admin-dash) .admin-user-dialog:not(.admin-user-apps-dialog){width:min(760px,calc(100vw - 32px));max-width:760px;height:fit-content}
body:has(.admin-dash) .admin-user-dialog>header{padding:14px 18px;min-height:0;gap:12px;background:#f8faf9}
body:has(.admin-dash) .admin-user-dialog>header p{margin:4px 0 0;font-size:12px}
body:has(.admin-dash) .admin-user-content{padding:16px 18px;scrollbar-gutter:auto;flex:0 1 auto}
body:has(.admin-dash) .admin-user-content .settings-history-grid{gap:12px 18px;font-size:12px}
body:has(.admin-dash) .admin-user-content .settings-history-grid strong{font-size:13px;line-height:1.5;margin-top:4px}
body:has(.admin-dash) .admin-user-totals{gap:12px;margin:16px 0}
body:has(.admin-dash) .admin-user-totals>div{padding:10px 14px;border-radius:8px;font-size:12px}
body:has(.admin-dash) .admin-user-totals strong{font-size:20px;line-height:26px;margin-top:2px}
body:has(.admin-dash) .admin-user-content form{padding:14px;border-radius:8px}
body:has(.admin-dash) .admin-user-content form>.settings-grid{gap:12px;margin-bottom:10px}
body:has(.admin-dash) .admin-user-content .input{margin-top:5px}
body:has(.admin-dash) .admin-user-content form p{margin:8px 0 0}
body:has(.admin-dash) .admin-user-content [role=alert]:empty{display:none}
body:has(.admin-dash) .admin-user-content .admin-user-history>div{padding:10px 0}
body:has(.admin-dash) .admin-user-dialog>footer{padding:10px 18px;gap:8px}
body:has(.admin-dash) .moderation-dialog{padding:20px;width:min(500px,calc(100vw - 32px));line-height:1.5}
body:has(.admin-dash) .moderation-dialog h2{margin-bottom:12px}
body:has(.admin-dash) .moderation-dialog .actions{margin-top:18px;gap:8px}
body:has(.admin-dash) .admin-dash .sidebar{padding:14px 10px}
body:has(.admin-dash) .admin-dash .sidebar a{font-size:14px;line-height:20px;min-height:36px;padding:8px 12px;gap:10px;margin:3px 0}
body:has(.admin-dash) .admin-dash .sidebar .ui-icon{width:17px;height:17px}
body:has(.admin-dash) .admin-dash :is(th,td){padding:9px 10px}
body:has(.admin-dash) .ops-filters{gap:8px;margin-bottom:14px}
body:has(.admin-dash) .admin-dash .card{padding:14px}
@media(min-width:761px){body:has(.admin-dash) .admin-dash{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:600px){
 body:has(.admin-dash) dialog{max-height:calc(100dvh - 20px)}
 body:has(.admin-dash) .admin-user-dialog:not(.admin-user-apps-dialog){width:calc(100vw - 20px)}
 body:has(.admin-dash) .admin-user-content .settings-history-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body:has(.admin-dash) .admin-user-dialog>header{flex-wrap:wrap}
 body:has(.admin-dash) :is(.admin-dash,dialog) .btn{min-height:36px}
}
@media(max-width:400px){body:has(.admin-dash) .admin-user-content .settings-grid{grid-template-columns:1fr}}

/* Give desktop navigation a clear, comfortable reading rhythm. */
@media(min-width:761px){
 body:has(.admin-dash) .admin-dash .sidebar{padding:18px 12px}
 body:has(.admin-dash) .admin-dash .sidebar a{font-size:16px;line-height:24px;min-height:46px;padding:11px 14px;gap:12px;margin:4px 0;color:#466257}
 body:has(.admin-dash) .admin-dash .sidebar a.active{color:var(--green);font-weight:650}
 body:has(.admin-dash) .admin-dash .sidebar .ui-icon{width:20px;height:20px;flex:0 0 20px}
 body:has(.admin-dash) .admin-dash .sidebar>small{margin-bottom:14px}
}

/* Overview is a statistical dashboard, independent of application operations. */
.admin-overview{min-width:0}.overview-totals,.overview-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.admin-dash .overview-total{display:flex;align-items:center;gap:14px;padding:20px;color:var(--ink);text-decoration:none}
.overview-total strong{display:block;font-size:27px;line-height:1.3;font-variant-numeric:tabular-nums}.overview-total div>span{display:block;margin-top:5px;font-size:13px;color:var(--muted)}
.overview-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:9px;flex:none;color:white}.overview-icon .ui-icon{width:25px;height:25px}
.admin-overview .blue{background:#2589c7}.admin-overview .purple{background:#7970b8}.admin-overview .cyan{background:#24a7be}.admin-overview .green{background:#0baa87}
.overview-middle{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:16px;margin:18px 0}.admin-dash .overview-middle>.card{padding:18px;min-width:0}
.overview-chart{display:block;width:100%;height:245px}.overview-chart text{font:12px sans-serif;fill:#71857d}.overview-trend p,.overview-activity p{color:var(--muted);margin:8px 0 0}
.overview-activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}.overview-activity-grid>div{padding:12px 0;border-bottom:1px solid var(--line)}.overview-activity-grid strong{font-size:23px;line-height:1.3;display:block;font-variant-numeric:tabular-nums}.overview-activity-grid span{font-size:13px;color:var(--muted);display:block;margin-top:3px}
.overview-business{display:flex;flex-direction:column;gap:12px;border-radius:8px;padding:20px;color:#fff;text-decoration:none;min-width:0}.overview-business>span{font-weight:600;font-size:14px}.overview-business strong{font-size:28px;line-height:1.35;font-variant-numeric:tabular-nums}.overview-business strong small{font-size:13px;font-weight:400}.overview-business>small{font-size:12px;color:#fff;opacity:.9}.overview-updated{text-align:right;color:var(--muted);margin:12px 0}
.overview-total:focus-visible,.overview-business:focus-visible{outline:3px solid #064d3d;outline-offset:3px}
@media(max-width:1100px){.overview-middle{grid-template-columns:1fr}.overview-activity-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-totals,.overview-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.overview-totals,.overview-bottom{gap:10px}.admin-dash .overview-total{padding:12px;gap:8px}.overview-icon{width:34px;height:34px}.overview-icon .ui-icon{width:19px;height:19px}.overview-total strong{font-size:21px}.overview-business{padding:14px}.overview-business strong{font-size:23px}.overview-chart{height:190px}.overview-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
