:root{--bg:#eef3f8;--panel:#fff;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--blue:#2563eb;--blue2:#3b82f6;--side:#111827;--side2:#1f2937;--red:#ef4444;--green:#16a34a;--yellow:#d97706;--purple:#7c3aed;--shadow:0 14px 30px rgba(15,23,42,.06)}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,textarea{font-family:inherit}.hidden{display:none!important}.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#111827,#1d4ed8)}.login-card{width:380px;background:#fff;border-radius:18px;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.login-logo{font-size:24px;font-weight:800}.login-subtitle{color:var(--muted);margin:8px 0 22px}.login-card label{font-size:13px;color:#374151;margin:14px 0 6px;display:block}.login-card input{width:100%;height:42px;border:1px solid var(--line);border-radius:10px;padding:0 12px}.login-msg{font-size:13px;color:var(--red);margin-top:12px;min-height:18px}.app{display:flex;height:100vh;overflow:hidden}.sidebar{width:220px;background:var(--side);color:#fff;display:flex;flex-direction:column;padding:22px 16px}.brand{padding:6px 6px 24px}.brand-title{font-size:22px;font-weight:800}.brand-sub{font-size:12px;color:#9ca3af;margin-top:6px}.menu{display:flex;flex-direction:column;gap:8px}.menu button{height:42px;border:none;border-radius:10px;background:transparent;color:#f9fafb;text-align:left;padding:0 14px;font-weight:700;cursor:pointer}.menu button:hover{background:rgba(255,255,255,.08)}.menu button.active{background:#2f80ed}.side-footer{margin-top:auto;color:#94a3b8;font-size:12px;padding:8px}.main{flex:1;min-width:0;padding:26px 24px;overflow:auto}.topbar{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}.topbar h1{font-size:24px;margin:0 0 4px}.topbar p{margin:0;color:var(--muted);font-size:13px}.btn{border:1px solid var(--line);background:#fff;color:#2563eb;height:36px;border-radius:9px;padding:0 16px;font-weight:700;cursor:pointer;white-space:nowrap}.btn:hover{filter:brightness(.98)}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.ghost{background:#fff;color:#2563eb}.btn.danger{background:#fff;color:#dc2626;border-color:#fecaca}.btn.full{width:100%}.btn:disabled{opacity:.6;cursor:not-allowed}.page{display:none}.page.active{display:block}.metrics{display:grid;gap:16px;margin-bottom:16px}.metrics.four{grid-template-columns:repeat(4,1fr)}.metrics.three{grid-template-columns:repeat(3,1fr)}.metric-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:22px 18px;min-height:118px;box-shadow:var(--shadow)}.metric-card span{display:block;color:#475569;font-size:13px}.metric-card strong{display:block;font-size:30px;margin:10px 0 5px}.metric-card em{font-style:normal;color:#64748b;font-size:12px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow)}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px}.panel-head h2{margin:0;font-size:18px}.panel-head.compact{margin-bottom:10px}.hint{font-size:12px;color:#64748b;font-weight:500}.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px}.dashboard-grid{align-items:stretch}.dashboard-side{display:grid;grid-template-rows:auto 1fr;gap:14px}.large{min-width:0}.fill{min-height:0}.table-panel{padding:16px}.table-wrap{overflow:auto;border-radius:10px;scrollbar-gutter:stable}.table-wrap table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.table-wrap thead th{position:sticky;top:0;z-index:1;background:#f3f6fa;color:#0f172a;font-size:13px;font-weight:800;padding:13px 10px;border-bottom:1px solid var(--line)}.table-wrap tbody td{height:42px;border-bottom:1px solid var(--line);font-size:13px;color:#334155;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-wrap tbody tr:hover td{background:#f8fafc}.table-wrap::-webkit-scrollbar{width:8px;height:8px}.table-wrap::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}.recent-wrap{height:285px;max-height:285px}.page-table{height:min(520px,calc(100vh - 245px));min-height:260px;max-height:520px}.txt-wrap{height:min(520px,calc(100vh - 245px));min-height:280px;max-height:520px}.version-wrap{height:min(420px,calc(100vh - 335px));min-height:240px;max-height:420px}.check-col{width:44px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:14px}.toolbar input{height:36px;border:1px solid var(--line);border-radius:9px;padding:0 12px;min-width:220px;background:#fff}.split{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px}.action-panel{align-self:stretch}.action-panel h2{margin:0 0 14px}.fancy-actions{display:flex;flex-direction:column;gap:12px}.stat-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat-cards div{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:10px;text-align:center}.stat-cards span{font-size:12px;color:#64748b;display:block}.stat-cards b{font-size:20px}.action-block{border:1px solid #e5e7eb;background:#fbfdff;border-radius:14px;padding:14px}.action-block h3{font-size:14px;margin:0 0 10px}.action-block p{margin:6px 0;color:#475569}.action-block .inline{display:flex;gap:8px}.action-block input[type=number]{height:36px;border:1px solid var(--line);border-radius:9px;padding:0 10px;min-width:82px;flex:1}.danger-zone{background:#fff7f7;border-color:#fecaca}.file-picker{height:40px;border:1px dashed #93c5fd;background:#eff6ff;color:#1d4ed8;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 12px;font-weight:800;margin-bottom:10px;cursor:pointer;overflow:hidden}.file-picker input{display:none}.file-picker span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tabs{display:flex;gap:8px;margin-bottom:14px}.tab{height:36px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 14px;font-weight:800;cursor:pointer}.tab.active{background:#2563eb;color:#fff;border-color:#2563eb}.log-tab{display:none}.log-tab.active{display:block}#runLogText{width:100%;height:calc(100vh - 190px);min-height:420px;border:1px solid var(--line);border-radius:16px;background:#0f172a;color:#e2e8f0;padding:14px;line-height:1.65;resize:none}.status-text{color:#64748b;font-size:13px}.message-panel{padding:16px}.message-card{min-height:158px;border-radius:16px;padding:22px 18px;color:#fff;display:flex;flex-direction:column;justify-content:center;transition:background .25s ease}.message-card.info{background:linear-gradient(135deg,#2563eb,#60a5fa);color:#fff}.message-card.ok{background:linear-gradient(135deg,#ecfdf5,#dcfce7);border:1px solid #86efac;color:#166534}.message-card.warn{background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1px solid #fdba74;color:#9a3412}.message-card.bad{background:linear-gradient(135deg,#fff1f2,#ffe4e6);border:1px solid #fda4af;color:#9f1239}.message-card.purple{background:linear-gradient(135deg,#f5f3ff,#ede9fe);border:1px solid #c4b5fd;color:#5b21b6}.msg-type{font-size:12px;font-weight:800;opacity:.9}.msg-title{font-size:18px;font-weight:900;margin:8px 0}.msg-body{font-size:13px;line-height:1.7;opacity:.95}.dots{display:flex;justify-content:center;gap:8px;margin:12px 0 0}.dot{width:9px;height:9px;border-radius:999px;background:#cbd5e1;cursor:pointer;border:0;padding:0}.dot.active{background:#2563eb;width:24px}.system-dashboard-card{padding:16px}.health-score{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#f8fafc,#eef6ff);border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:12px}.health-score span,.health-score em{display:block;color:#64748b;font-size:12px;font-style:normal}.health-score strong{font-size:32px}.health-score i{width:58px;height:58px;border-radius:50%;background:conic-gradient(#16a34a 85%,#e5e7eb 0);display:block}.sys-row{display:grid;grid-template-columns:42px 1fr 46px;align-items:center;gap:10px;font-size:12px;margin:10px 0}.sys-row div{height:10px;background:#e5e7eb;border-radius:999px;overflow:hidden}.sys-row i{display:block;height:100%;background:#2563eb;border-radius:999px;width:0}.sys-row b{text-align:right;color:#334155}.status-grid.mini{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:12px}.status-grid.mini div{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:9px}.status-grid.mini span{display:block;color:#64748b;font-size:12px}.status-grid.mini b{font-size:13px}.ok{color:#16a34a!important}.warn{color:#d97706!important}.bad{color:#dc2626!important}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800}.badge.ok{background:#dcfce7;color:#15803d}.badge.warn{background:#fef3c7;color:#b45309}.badge.bad{background:#fee2e2;color:#dc2626}.pwd{cursor:pointer;color:#2563eb;font-weight:800}.upload-panel{margin-bottom:16px}.form-grid{display:grid;grid-template-columns:220px minmax(0,1fr) 160px;gap:10px;align-items:center}.form-grid input{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px}.version-upload .file-picker{margin:0}.server-page{padding-bottom:32px}.server-hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;background:linear-gradient(135deg,#111827,#1d4ed8);color:#fff;border:0}.server-hero h2{font-size:26px;margin:0 0 6px}.server-hero p{margin:0;color:#cbd5e1}.server-grade{text-align:center}.server-grade span{display:block;font-size:12px;color:#bfdbfe}.server-grade strong{font-size:38px}.server-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.server-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.server-card span{display:block;color:#64748b;font-size:13px}.server-card strong{font-size:26px;margin:9px 0;display:block}.server-card em{font-style:normal;color:#64748b;font-size:12px}.bar{height:10px;background:#e5e7eb;border-radius:999px;overflow:hidden}.bar i{display:block;height:100%;background:#2563eb;width:0;border-radius:999px}.server-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.info-list p{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;margin:0}.info-list span{color:#64748b}.maintenance-card ul{margin:0;padding-left:20px;line-height:2;color:#334155}.json-box{margin:0;background:#0f172a;color:#dbeafe;border-radius:12px;padding:14px;min-height:110px;max-height:240px;overflow:auto}.side-stack{min-height:0}@media (max-width:1100px){.metrics.four{grid-template-columns:repeat(2,1fr)}.grid-main,.split,.server-grid{grid-template-columns:1fr}.sidebar{width:190px}.server-cards{grid-template-columns:repeat(2,1fr)}}

/* v3 system info and compact tables */
.table-wrap tbody tr.empty-row td{height:220px;border-bottom:0;background:#fff}
.recent-wrap tbody tr.empty-row td{height:180px}
.table-wrap tbody tr.empty-row:hover td{background:#fff}
.resource-list{display:flex;flex-direction:column;gap:18px;margin-top:8px}.resource-row{display:grid;grid-template-columns:44px minmax(90px,1fr) 118px;align-items:center;gap:12px}.resource-name{font-weight:900;color:#0f172a}.resource-bar{height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden}.resource-bar i{display:block;height:100%;width:0;background:#16a34a;border-radius:999px;transition:width .25s ease,background .25s ease}.resource-meta{display:flex;flex-direction:column;align-items:flex-end;min-width:0}.resource-meta b{font-size:13px;color:#0f172a;white-space:nowrap}.resource-meta span{font-size:11px;color:#64748b;max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mini-status-line{display:flex;justify-content:space-between;gap:8px;border-top:1px solid var(--line);margin-top:18px;padding-top:12px;font-size:12px;color:#64748b}.table-panel{min-height:auto}.system-dashboard-card{min-height:230px}.server-card em{display:block;min-height:16px;margin-top:-4px;margin-bottom:8px;color:#64748b;font-style:normal;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-card{min-height:170px}.msg-body{font-weight:600}.action-block .btn{margin-top:6px}.danger-zone .btn+.btn{margin-left:8px}

/* v3-final minimal fix: only keep table containers scrollable; no UI layout/color changes */
.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;}
.page-table,.txt-wrap,.version-wrap,.recent-wrap{overflow-x:auto;overflow-y:auto;}
.table-wrap thead th{position:sticky;top:0;z-index:3;}

/* function-bindings-fix1: small scoped fixes for existing admin controls */
.btn.mini{height:30px;padding:0 10px;font-size:12px;border-radius:8px}
.actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.toolbar .btn.active{background:#2563eb;color:#fff;border-color:#2563eb}
.txt-wrap table{min-width:760px}
.txt-wrap th:nth-child(1),.txt-wrap td:nth-child(1){width:46px;text-align:center}
.txt-wrap th:nth-child(2),.txt-wrap td:nth-child(2){width:auto}
.txt-wrap th:nth-child(3),.txt-wrap td:nth-child(3){width:180px;color:#475569}
.txt-wrap th:nth-child(4),.txt-wrap td:nth-child(4){width:130px;text-align:center}
.page-table table{min-width:920px}
#reportsBody tr[data-rpt]{cursor:pointer}
#reportsBody tr[data-rpt]:hover td{background:#f1f5f9}
#usersBody td:last-child{overflow:visible;white-space:normal}
#versionsBody td:last-child{overflow:visible;white-space:normal}


/* admin_final_fix1: 用户弹窗、表格收尾 */
.modal.hidden{display:none!important}
.modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center}
.modal-mask{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px)}
.modal-card{position:relative;width:min(520px,92vw);max-height:88vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.28);border:1px solid rgba(226,232,240,.9)}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #eef2f7}
.modal-head h2{font-size:18px;margin:0;color:#0f172a}
.modal-close{border:0;background:#f1f5f9;border-radius:10px;width:34px;height:34px;font-size:22px;cursor:pointer;color:#475569}
.modal-body{padding:18px 20px;display:grid;gap:10px}
.modal-body label{font-size:13px;color:#475569;font-weight:700;margin-top:4px}
.modal-body input,.modal-body select{width:100%;height:38px;border:1px solid #dbe3ef;border-radius:10px;padding:0 12px;font-size:14px;outline:none;background:#fff}
.modal-body input:focus,.modal-body select:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px 18px;border-top:1px solid #eef2f7}
.product-check-list{border:1px solid #dbe3ef;border-radius:12px;padding:8px;display:grid;gap:6px;max-height:180px;overflow:auto;background:#f8fafc}
.check-item{display:flex!important;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid #edf2f7;cursor:pointer;margin:0!important;font-weight:500!important;color:#0f172a!important}
.check-item input{width:auto!important;height:auto!important}.check-item em{font-style:normal;color:#64748b;margin-left:6px;font-size:12px}.small{font-size:12px!important}
#usersBody .actions{display:flex;gap:6px;flex-wrap:nowrap}#usersBody td:nth-child(9){min-width:250px}.mini{padding:5px 8px!important;font-size:12px!important;line-height:1.1}.btn.danger{background:#ef4444;color:#fff;border-color:#ef4444}.btn.danger:hover{background:#dc2626}
#txtBody td:nth-child(2){font-weight:600;color:#0f172a}.txt-wrap{max-height:calc(100vh - 250px);overflow:auto}.txt-wrap table th:nth-child(1){width:42px}.txt-wrap table th:nth-child(3){width:150px}.txt-wrap table th:nth-child(4){width:90px}


/* admin_next_fix1: 用户表格、版本产品关系、日志优化 */
.muted{color:#94a3b8}
code{background:#f1f5f9;color:#334155;border:1px solid #e2e8f0;border-radius:6px;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.user-wrap{max-height:calc(100vh - 235px);overflow:auto}
.users-table{min-width:1120px;table-layout:fixed}
.users-table th:nth-child(1),.users-table td:nth-child(1){width:120px}
.users-table th:nth-child(2),.users-table td:nth-child(2){width:130px}
.users-table th:nth-child(3),.users-table td:nth-child(3){width:140px}
.users-table th:nth-child(4),.users-table td:nth-child(4){width:78px;text-align:center}
.users-table th:nth-child(5),.users-table td:nth-child(5){width:125px}
.users-table th:nth-child(6),.users-table td:nth-child(6){width:145px}
.users-table th:nth-child(7),.users-table td:nth-child(7){width:105px}
.users-table th:nth-child(8),.users-table td:nth-child(8){width:95px;text-align:center}
.users-table th:nth-child(9),.users-table td:nth-child(9){width:280px;overflow:visible;white-space:normal}
.product-pill{display:inline-flex;align-items:center;max-width:100%;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px;font-weight:800;margin:1px 3px 1px 0;vertical-align:middle}
.user-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.user-actions .btn.mini{height:27px;padding:0 7px;font-size:12px}
.version-form-grid{grid-template-columns:220px 240px minmax(220px,1fr) 150px;align-items:center}
.version-form-grid select{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;font-weight:700;color:#0f172a}
.version-no-box{display:grid;grid-template-columns:1fr 62px;gap:6px;align-items:center}
.version-hint{margin:10px 0 0}.version-wrap table{min-width:1120px}.version-wrap th:nth-child(1),.version-wrap td:nth-child(1){width:160px}.version-wrap th:nth-child(2),.version-wrap td:nth-child(2){width:130px}.version-wrap th:nth-child(3),.version-wrap td:nth-child(3){width:145px}.version-wrap th:nth-child(4),.version-wrap td:nth-child(4){width:95px;text-align:center}.version-wrap th:nth-child(5),.version-wrap td:nth-child(5){width:110px}.version-wrap th:nth-child(8),.version-wrap td:nth-child(8){width:150px;overflow:visible;white-space:normal}
#runLogText{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media (max-width:1200px){.version-form-grid{grid-template-columns:1fr}.version-no-box{grid-template-columns:1fr 70px}}


/* next layout refinement: product delete + TXT UI + table alignment */
.table-wrap table{border-collapse:collapse!important;table-layout:fixed!important;width:100%!important;}
.table-wrap thead th,.table-wrap tbody td{box-sizing:border-box;vertical-align:middle;text-align:left;}
.table-wrap thead th{height:44px;line-height:18px;}
.table-wrap tbody td{height:42px;line-height:18px;}
.table-wrap .actions{display:flex;gap:6px;align-items:center;justify-content:flex-start;flex-wrap:nowrap;}
.table-wrap .btn.mini{height:30px;padding:0 10px;border-radius:8px;font-size:12px;}

/* TXT page optimized layout */
#page-txt .split{grid-template-columns:minmax(0,1fr) 300px;align-items:start;}
#page-txt .txt-list-panel{padding:18px;}
#page-txt .panel-head{min-height:40px;}
#page-txt .txt-wrap{height:min(545px,calc(100vh - 235px));min-height:360px;max-height:545px;border:1px solid var(--line);border-radius:12px;background:#fff;}
#page-txt .txt-wrap table{min-width:0!important;}
#page-txt .txt-table th:nth-child(1),#page-txt .txt-table td:nth-child(1){width:52px;text-align:center;}
#page-txt .txt-table th:nth-child(2),#page-txt .txt-table td:nth-child(2){width:auto;}
#page-txt .txt-table th:nth-child(3),#page-txt .txt-table td:nth-child(3){width:180px;color:#475569;}
#page-txt .txt-table th:nth-child(4),#page-txt .txt-table td:nth-child(4){width:96px;text-align:center;}
#page-txt .txt-table td:nth-child(4){text-align:center;}
#page-txt .nick-name{font-weight:800;color:#0f172a;}
.version-chip{display:inline-flex;align-items:center;max-width:160px;height:26px;padding:0 8px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#page-txt .txt-action-panel{padding:18px;}
#page-txt .stat-cards{grid-template-columns:repeat(3,1fr);gap:10px;}
#page-txt .stat-cards div{padding:12px 8px;}
#page-txt .action-block{padding:15px;margin-top:2px;}
#page-txt .danger-zone{background:#fff7f7;}
#page-txt .danger-zone .btn{margin-top:8px;}

/* user table width refinement */
.users-table{min-width:1180px;}
.users-table th:nth-child(1),.users-table td:nth-child(1){width:120px;}
.users-table th:nth-child(2),.users-table td:nth-child(2){width:140px;}
.users-table th:nth-child(3),.users-table td:nth-child(3){width:140px;}
.users-table th:nth-child(4),.users-table td:nth-child(4){width:80px;text-align:center;}
.users-table th:nth-child(5),.users-table td:nth-child(5){width:150px;}
.users-table th:nth-child(6),.users-table td:nth-child(6){width:150px;}
.users-table th:nth-child(7),.users-table td:nth-child(7){width:110px;}
.users-table th:nth-child(8),.users-table td:nth-child(8){width:100px;}
.users-table th:nth-child(9),.users-table td:nth-child(9){width:290px;}

/* products/versions alignment */
#productsBody td:nth-child(5),#versionsBody td:last-child{text-align:left;}
#page-products .page-table table{min-width:780px;}
#page-versions .version-wrap table{min-width:1120px;}

/* admin_v2.3.2_ui_fix: 中文状态、操作反馈、Q版高达小助手 */
.empty-row td,.loading-row td{text-align:center!important;color:#94a3b8!important;height:180px!important;font-weight:700;background:#fff!important;}
.loading-row td:before{content:'⏳ ';}
.refresh-note{margin-left:10px;color:#64748b;font-size:12px;font-weight:700;display:inline-flex;align-items:center;}
.btn:disabled{opacity:.65;cursor:not-allowed;filter:grayscale(.15)}
#toastBox{position:fixed;right:24px;top:24px;z-index:99999;display:grid;gap:10px;pointer-events:none;}
.toast{min-width:180px;max-width:360px;padding:12px 14px;border-radius:14px;background:#0f172a;color:#fff;box-shadow:0 16px 45px rgba(15,23,42,.18);font-size:14px;font-weight:800;opacity:0;transform:translateY(-8px);transition:.22s ease;}
.toast.show{opacity:1;transform:translateY(0)}.toast.ok{background:#16a34a}.toast.bad{background:#dc2626}.toast.info{background:#2563eb}.toast.warn{background:#f59e0b;color:#111827}
#qGundam{position:fixed;right:24px;bottom:24px;width:92px;height:118px;z-index:9990;cursor:grab;user-select:none;filter:drop-shadow(0 16px 18px rgba(15,23,42,.18));}
#qGundam.dragging{cursor:grabbing}.g-hide{position:absolute;right:2px;top:0;width:20px;height:20px;border:0;border-radius:999px;background:#0f172a;color:#fff;font-weight:900;z-index:4;cursor:pointer}.g-head{position:absolute;left:18px;top:15px;width:56px;height:42px;border-radius:14px 14px 10px 10px;background:linear-gradient(#fff,#dbeafe);border:3px solid #1e3a8a}.g-head:before,.g-head:after{content:'';position:absolute;top:-11px;width:18px;height:16px;background:#facc15;border:3px solid #1e3a8a;border-bottom:0}.g-head:before{left:-7px;transform:rotate(-25deg)}.g-head:after{right:-7px;transform:rotate(25deg)}.g-head span{position:absolute;left:10px;top:14px;width:36px;height:8px;background:#22d3ee;border-radius:8px;box-shadow:0 0 0 2px #0e7490 inset}.g-body{position:absolute;left:24px;top:58px;width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#60a5fa);border:3px solid #1e3a8a}.g-body i{position:absolute;left:13px;top:7px;width:18px;height:24px;background:#ef4444;border-radius:5px;border:2px solid #991b1b}.g-arm{position:absolute;top:64px;width:18px;height:40px;border-radius:10px;background:#e5e7eb;border:3px solid #1e3a8a;transform-origin:top center}.g-arm.left{left:8px;transform:rotate(18deg)}.g-arm.right{right:8px;animation:gWave 2.6s ease-in-out infinite}.g-bubble{position:absolute;right:76px;bottom:70px;min-width:110px;background:#fff;border:1px solid #dbeafe;border-radius:14px;padding:8px 10px;color:#1e3a8a;font-size:12px;font-weight:900;box-shadow:0 12px 28px rgba(15,23,42,.12);opacity:.94}.g-bubble:after{content:'';position:absolute;right:-7px;bottom:12px;border-left:8px solid #fff;border-top:7px solid transparent;border-bottom:7px solid transparent}@keyframes gWave{0%,100%{transform:rotate(-18deg)}50%{transform:rotate(-55deg)}}
@media (max-width:900px){#qGundam{display:none}}


/* v2.3.4 hotfix: toast readable, assistant disabled */
#qGundam,.gundam,.assistant-widget{display:none!important;}
#toastBox{position:fixed!important;right:22px!important;top:22px!important;z-index:99999!important;display:flex!important;flex-direction:column!important;gap:10px!important;align-items:flex-end!important;pointer-events:none!important;}
.toast{box-sizing:border-box!important;min-width:150px!important;max-width:380px!important;min-height:38px!important;padding:10px 16px!important;border-radius:12px!important;box-shadow:0 12px 32px rgba(15,23,42,.16)!important;font-size:14px!important;font-weight:800!important;line-height:1.4!important;opacity:0!important;transform:translateY(-8px)!important;transition:.22s ease!important;display:flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.toast span{display:block!important;color:inherit!important;}
.toast.show{opacity:1!important;transform:translateY(0)!important;}
.toast.ok{background:#ecfdf5!important;color:#166534!important;border:1px solid #bbf7d0!important;}
.toast.bad{background:#fef2f2!important;color:#991b1b!important;border:1px solid #fecaca!important;}
.toast.info{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important;}
.toast.warn{background:#fffbeb!important;color:#92400e!important;border:1px solid #fde68a!important;}


/* v2.3.6: compact upload row, progress below file selector, live upload speed */
.version-form-grid{grid-template-columns:185px 205px minmax(300px,1fr) 190px;gap:10px;align-items:start;}
.version-no-box{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;}
.version-file-area{min-width:0;display:flex;flex-direction:column;gap:7px;}
.version-file-area .file-picker{width:100%;margin:0;}
.version-upload-btn{width:190px;min-width:190px;height:40px;padding:0 16px;font-size:14px;transition:opacity .18s ease,filter .18s ease;align-self:start;}
.version-upload-btn.is-uploading{position:relative;background:#1d4ed8;border-color:#1d4ed8;}
.version-upload-btn.is-uploading:before{content:'';display:inline-block;width:13px;height:13px;margin-right:7px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;vertical-align:-2px;animation:versionUploadSpin .75s linear infinite;}
.version-upload-feedback{display:grid;grid-template-columns:minmax(110px,34%) minmax(0,1fr);align-items:center;gap:10px;min-height:18px;margin:0;}
.version-upload-progress{width:100%;height:6px;overflow:hidden;border-radius:999px;background:#e2e8f0;opacity:0;transition:opacity .18s ease;}
.version-upload-progress i{display:block;width:0;height:100%;border-radius:999px;background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .16s ease;}
#verUploadStatus{min-width:0;color:#64748b;font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;transition:opacity .18s ease;}
#verUploadStatus.active{opacity:1}.version-upload-feedback:has(#verUploadStatus.active) .version-upload-progress{opacity:1;}
#verUploadStatus.success{color:#15803d}#verUploadStatus.error{color:#dc2626}
.version-upload input:disabled,.version-upload select:disabled,.version-upload .file-picker:has(input:disabled){opacity:.65;cursor:not-allowed;}
.version-hint{margin-top:8px;}
@keyframes versionUploadSpin{to{transform:rotate(360deg)}}
@media (max-width:1250px){.version-form-grid{grid-template-columns:165px 190px minmax(240px,1fr) 180px}.version-upload-btn{width:180px;min-width:180px}.version-upload-feedback{grid-template-columns:120px minmax(0,1fr)}}
@media (max-width:1050px){.version-form-grid{grid-template-columns:1fr}.version-upload-btn{width:100%;min-width:0}.version-upload-feedback{grid-template-columns:minmax(100px,30%) minmax(0,1fr)}}

/* admin v2.3.8: 首页最近执行记录充分利用剩余高度，超出后内部滚动 */
.dashboard-page .dashboard-grid{
  min-height:calc(100vh - 292px);
  align-items:stretch;
}
.dashboard-page .compact-list-panel{
  display:flex;
  flex-direction:column;
  height:calc(100vh - 292px);
  min-height:520px;
  overflow:hidden;
}
.dashboard-page .compact-list-panel .panel-head{
  flex:0 0 auto;
}
.dashboard-page .compact-list-panel .recent-wrap{
  flex:1 1 auto;
  height:auto;
  min-height:0;
  max-height:none;
  overflow-x:auto;
  overflow-y:auto;
}
.dashboard-page .compact-list-panel .recent-wrap table{
  min-height:100%;
}
@media (max-height:760px){
  .dashboard-page .dashboard-grid{min-height:460px}
  .dashboard-page .compact-list-panel{height:460px;min-height:460px}
}

/* admin v2.3.10: 首页最近执行记录保持正常行高，外层区域继续满高并支持内部滚动 */
.dashboard-page .compact-list-panel .recent-wrap table{
  min-height:0!important;
  height:auto!important;
  align-self:flex-start!important;
}
.dashboard-page .compact-list-panel .recent-wrap tbody,
.dashboard-page .compact-list-panel .recent-wrap tr{
  height:auto!important;
}
.dashboard-page .compact-list-panel .recent-wrap tbody td{
  height:42px!important;
  min-height:42px!important;
  padding-top:0!important;
  padding-bottom:0!important;
  vertical-align:middle!important;
}
