.edition-tabs,.code-actions,.live-results nav{display:flex;gap:.5rem}
.user-page .container{max-width:1140px;padding-inline:clamp(12px,2vw,24px)}
.user-page .service-panel{padding-inline:clamp(14px,3vw,32px)}
.edition-tabs{margin-bottom:1rem}
.edition-tabs button,.code-actions button,.live-results nav button{border:1px solid #b8cbe5;border-radius:8px;background:#fff;color:#25456d;padding:.5rem .75rem;cursor:pointer}
.edition-tabs button[aria-pressed=true]{background:#2864c1;color:#fff;border-color:#2864c1}
.user-page .code-field{display:flex;align-items:stretch;gap:.55rem}
.user-page .code-field>.code-actions{position:static;flex:none}
.user-page .code-field input{padding-right:.5rem!important;min-width:0;flex:1;margin:0}
.user-page .code-actions button{min-width:5rem;padding:0 1rem;border-color:#2864c1;border-radius:10px;background:#2864c1;color:#fff;font:inherit;font-weight:600}
.user-page .code-actions button:hover{background:#2055a9;border-color:#2055a9}
.user-page .code-actions button:focus-visible{outline:2px solid #2864c1;outline-offset:2px}
.code-lock-hint{display:block;margin-top:.35rem;color:#4f6581}
@media(max-width:440px){.user-page .code-actions button{min-width:4rem;padding:0 .65rem}}
.code-actions button:disabled,.live-results nav button:disabled{opacity:.55;cursor:default}
.live-results{margin:1rem 0;padding:1rem;border:1px solid #d4e1ef;border-radius:12px}
.live-results[hidden],.live-results nav[hidden]{display:none}
.live-results h2{font-size:1rem;margin:0}
.live-results-heading{display:flex;justify-content:space-between;align-items:center;gap:.75rem}
#live-history-code{display:block;margin-top:.15rem;color:#566e8a;font-size:.76rem}
#refresh-live-results{border:1px solid #a8c1e2;border-radius:8px;background:#fff;color:#25456d;min-height:36px;padding:.35rem .85rem;font:inherit;font-size:.85rem;cursor:pointer}
#refresh-live-results:hover:not(:disabled){background:#eaf2ff;border-color:#2864c1}
#refresh-live-results:disabled{opacity:.6;cursor:wait}
.live-results p:empty{display:none}
.live-table-wrap{overflow-x:auto;margin:.7rem 0;border:1px solid #d4e1ef;border-radius:8px}
.live-order-table{width:100%;min-width:620px;table-layout:fixed;border-collapse:collapse;font-size:.83rem;color:#27405f}
.live-order-table :is(th,td){text-align:left;padding:.65rem .6rem;white-space:nowrap}
.live-order-table th{background:#eff5fd;font-weight:700}
.live-order-table th:nth-child(1){width:30%}
.live-order-table th:nth-child(2){width:14%}
.live-order-table th:nth-child(3){width:24%}
.live-order-table th:nth-child(4){width:22%}
.live-order-table th:nth-child(5){width:10%}
.live-order-table td{border-top:1px solid #e3edf7}
.live-order-table tr:hover td{background:#f6f9fd}
.live-filename{display:block;overflow:hidden;text-overflow:ellipsis}
.live-order-status{display:inline-block;padding:.18rem .42rem;border-radius:20px;background:#e8f0ff;color:#254d86}
.live-order-status[data-status="已完成"]{background:#e4f5ed;color:#126443}
.live-order-status[data-status="已取消"]{background:#f5eae8;color:#963b32}
.live-report-links a{display:inline-flex;align-items:center;padding:.18rem .45rem;border:1px solid #d1e2f7;border-radius:6px;background:#f1f6ff;color:#205daf;text-decoration:none}
.live-report-links a+a{margin-left:.3rem}
.live-report-links a:hover{border-color:#85acde;background:#e5efff}
.live-delete-button{border:1px solid #e1b5b0;border-radius:7px;background:white;color:#9a302a;padding:.25rem .65rem;font:inherit;font-size:.82rem;cursor:pointer}
.live-delete-button:hover:not(:disabled){background:#fff0ee}
.live-delete-button:disabled{opacity:.55;cursor:wait}
.live-results nav{align-items:center;justify-content:flex-end}
.live-results{scroll-margin-top:80px}
