:root{--green:#009688;--dark:#007f73;--bg:#f4f6f7;--line:#dce3e6;--text:#23343c;--muted:#637781;--red:#c2414b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 "Microsoft YaHei UI","Segoe UI",sans-serif}header{height:86px;display:flex;align-items:center;gap:14px;padding:0 28px;background:#fff;border-bottom:1px solid var(--line)}.mark{width:43px;height:43px;display:block;flex-shrink:0;object-fit:contain;background:#fff;border-radius:50%}h1{margin:0;font-size:23px;font-weight:650}p{margin:3px 0 0;color:var(--muted);font-size:13px}.version{margin-left:auto;color:var(--muted);font-size:12px}main{max-width:1200px;margin:auto;padding:20px 28px}section{border:1px solid var(--line);border-radius:6px;background:#fff;padding:16px 20px;margin-bottom:14px}h2{margin:0;font-size:16px;font-weight:650}h2 small{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.connection{display:grid;grid-template-columns:1fr auto;gap:12px}.connection-actions,.run-buttons{display:flex;align-items:center;gap:8px}.url{grid-column:1/-1;background:#f6f9f9;padding:8px 12px;border-left:3px solid var(--green);font-size:13px}.url span{margin-left:22px;color:var(--muted);font-size:12px}button{font:inherit;font-size:13px;height:36px;padding:0 16px;white-space:nowrap;border:1px solid var(--green);background:var(--green);color:#fff;border-radius:4px;cursor:pointer}button:hover{background:var(--dark)}button.secondary{color:var(--dark);background:#fff;border-color:#a5c7c4}button.secondary:hover{background:#f0f8f7}button.danger{color:var(--red);background:#fff;border-color:#e5b2b7}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:2px solid #087aa4;outline-offset:2px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}table{width:100%;border-collapse:collapse;table-layout:fixed}th{text-align:left;background:#f6f8f9;color:var(--muted);font-size:12px;font-weight:500;padding:8px 12px;border-block:1px solid var(--line)}td{padding:9px 12px;border-bottom:1px solid #edf0f2}.check-col{width:64px}th:nth-child(2){width:32%}input[type=number]{width:100%;max-width:138px;height:34px;padding:5px 10px;border:1px solid #cad6da;border-radius:4px;color:var(--text);font:14px "Segoe UI",sans-serif}input[type=checkbox]{width:16px;height:16px;accent-color:var(--green)}.not-used{color:#9aa8af}.hint{margin-top:10px;font-size:12px}.status-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;gap:12px}.status-row strong{font-weight:500}.status-row span{color:var(--dark);white-space:nowrap}progress{appearance:none;width:100%;height:6px;border:0;border-radius:4px;display:block;margin:10px 0 12px}progress::-webkit-progress-bar{background:#eaf0f1;border-radius:4px}progress::-webkit-progress-value{background:var(--green);border-radius:4px}details{font-size:12px;color:var(--muted);margin-bottom:10px}summary{cursor:pointer;width:fit-content}#user-list{max-height:100px;overflow:auto;margin:8px 0;background:#f7f9fa;padding:8px;white-space:pre-wrap}#log{height:122px;overflow:auto;background:#20292f;color:#d2dee2;border-radius:4px;padding:10px 12px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}#log .error{color:#ffc4c9}#log .time{color:#8da6af;margin-right:12px}.log-placeholder{color:#9cafb7}.bottom-actions{display:flex;align-items:center;gap:14px;margin-top:8px}.text-button{border:0;background:transparent;color:var(--dark);padding:0;height:28px;font-size:12px}.text-button:hover{background:transparent;text-decoration:underline}.bottom-actions span{margin-left:auto;color:var(--muted);font-size:11px}footer{color:var(--muted);font-size:11px;margin-top:-4px}@media(max-width:930px){header{padding-inline:20px}main{padding:16px 20px}.url span{display:none}.run-buttons{gap:5px}.run-buttons button{padding:0 10px}.bottom-actions span{display:none}.version{font-size:11px}}
:root{color-scheme:light}
@media(max-height:850px){header{height:64px}h1{font-size:21px}.mark{height:38px;width:38px}main{padding:12px 24px}section{padding:10px 16px;margin-bottom:10px}.connection{gap:8px}.url{padding:5px 10px}.section-head{margin-bottom:8px}th{padding:6px 10px}td{padding:5px 10px}input[type=number]{height:28px}button{height:32px}.hint{margin-top:6px}#log{height:76px}progress{margin:8px 0}details{margin-bottom:6px}.bottom-actions{margin-top:4px}footer{font-size:10px}}
@media(max-height:850px){#log{height:56px}td{padding-block:4px}}
.resume-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin-bottom:5px}.resume-row label{display:flex;align-items:center;gap:6px}.resume-row input{margin:0;width:14px;height:14px}.resume-row .text-button{height:24px}dialog{width:94vw;max-width:1100px;max-height:86vh;border:1px solid var(--line);border-radius:6px;padding:20px;color:var(--text);box-shadow:0 12px 45px #0003}dialog::backdrop{background:#15252c66}.history-filters{display:flex;gap:10px}.history-filters input,.history-filters select{height:34px;padding:5px 10px;border:1px solid #cad6da;border-radius:4px;font:inherit;background:#fff}.history-filters input{flex:1;min-width:120px}.history-table-wrap{max-height:48vh;overflow:auto;margin-top:12px;border:1px solid var(--line)}.history-table{font-size:12px}.history-table th{position:sticky;top:0;background:#f6f8f9}.history-table th:nth-child(1){width:22%}.history-table th:nth-child(2){width:21%}.history-table th:nth-child(3){width:19%}.history-table th:nth-child(4){width:19%}.history-table td{overflow-wrap:anywhere;padding:10px 8px}.record-success{color:#007f73}.record-pending{color:#b44242}
@media(max-height:850px){header{height:58px}section{margin-bottom:8px}td{padding-block:3px}#log{height:48px}}
.price-table-wrap{max-height:200px;overflow:auto}.price-table-wrap th{position:sticky;top:0;z-index:1;background:#f6f8f9}

[hidden]{display:none!important}.mode-tabs{display:flex;gap:8px;margin:0 0 8px}.mode-tabs button{height:28px;font-size:12px}.agent-section details{margin-top:12px}#agent-users{white-space:pre-wrap;overflow-wrap:anywhere;max-height:130px;overflow:auto;padding:8px 0;color:var(--muted)}@media(max-height:850px){.price-table-wrap{max-height:156px}}
