:root { color-scheme: light; font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif; color: #23282e; background: #f5f6f8; letter-spacing: 0; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
header { padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border-bottom: 1px solid #dfe2e7; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 32px; height: 32px; }
.brand strong { font-size: 18px; }
#service-status { color: #297453; font-size: 13px; }
main { max-width: 1400px; margin: auto; padding: 28px; }
h1 { font-size: 23px; margin: 0; }
h2 { font-size: 18px; margin: 0; }
button, input, select { font: inherit; letter-spacing: 0; }
button { min-height: 38px; border: 1px solid #cbd1d9; background: #fff; color: #343b45; padding: 7px 14px; border-radius: 5px; cursor: pointer; }
button:hover { background: #edf0f4; }
button:disabled { opacity: .55; cursor: wait; }
button.primary { color: #fff; background: #236dbe; border-color: #236dbe; }
button.primary:hover { background: #185a9f; }
input, select { display: block; width: 100%; min-height: 40px; margin-top: 7px; padding: 8px 10px; border: 1px solid #cbd1d9; border-radius: 5px; background: #fff; color: #23282e; }
input:focus, select:focus, button:focus-visible { outline: 2px solid #6a9ed8; outline-offset: 2px; }
input:disabled { background: #edf0f4; }
label { display: block; font-size: 14px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 16px; min-height: 16px; margin: 0; }
#login-view { max-width: 380px; margin: 54px auto; }
#login-view h1 { margin-bottom: 26px; }
#login-form { display: grid; gap: 20px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.commands { display: flex; gap: 8px; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #dfe2e7; border-bottom: 1px solid #dfe2e7; margin-bottom: 22px; }
.metrics div { padding: 20px 16px; }
.metrics span { display: block; font-size: 13px; color: #6a7078; }
.metrics strong { display: block; font-size: 25px; margin-top: 7px; }
#search { max-width: 320px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid #dfe2e7; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
th { background: #eef1f5; font-weight: 600; color: #515964; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #e6e9ed; }
tbody tr:last-child td { border-bottom: 0; }
td button { min-height: 30px; font-size: 12px; padding: 3px 8px; margin-right: 5px; }
.state-active { color: #28744e; }
.state-inactive { color: #b54445; }
.jobs-title { margin-top: 30px; }
#message { padding: 12px 16px; background: #fceeed; color: #963a36; border-radius: 5px; overflow-wrap: anywhere; }
dialog { width: 460px; max-width: calc(100% - 24px); max-height: calc(100vh - 32px); border: 1px solid #d7dce3; border-radius: 8px; padding: 24px; color: #23282e; overflow-y: auto; }
dialog::backdrop { background: #17202a66; }
#user-form { display: grid; gap: 13px; }
#user-form .toolbar { margin-bottom: 2px; }
#close-editor { padding: 0; width: 34px; min-height: 34px; font-size: 23px; }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
#editor-error { color: #ac3939; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
#log-section { margin-top: 36px; padding-top: 24px; border-top: 1px solid #dfe2e7; }
#log-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
#log-filters label { min-width: 0; }
.filter-actions { align-items: end; }
.log-table table { table-layout: fixed; white-space: normal; }
.log-table th:first-child { width: 170px; }
.log-table th:nth-child(2) { width: 130px; }
.log-table th:nth-child(3) { width: 70px; }
.log-table th:last-child { width: 110px; }
.log-table td { vertical-align: top; white-space: pre-line; overflow-wrap: anywhere; }
.log-message div { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; line-height: 1.6; }
.log-message button { margin-top: 6px; }
.log-table td:last-child button { display: block; margin-bottom: 5px; }
.log-level-success { color: #28744e; }
.log-level-error { color: #b54445; }
.log-level-warning { color: #926516; }
.pagination { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.pagination .commands { align-items: center; }
.pagination label { display: flex; align-items: center; gap: 8px; }
.pagination select { width: 85px; margin-top: 0; }
#log-page { min-width: 60px; text-align: center; }
#log-error { color: #b54445; overflow-wrap: anywhere; }
#log-detail { width: 780px; }
#log-meta { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 10px; font-size: 13px; }
#log-meta dt { color: #6a7078; }
#log-meta dd { margin: 0; overflow-wrap: anywhere; }
#log-content { font: inherit; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; border-top: 1px solid #dfe2e7; padding-top: 16px; }
#log-close { padding: 0; width: 34px; min-height: 34px; font-size: 23px; }
@media (max-width: 900px) { #log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .log-table table { min-width: 760px; } }
@media (max-width: 480px) { #log-filters { grid-template-columns: minmax(0, 1fr); } .pagination .commands { gap: 6px; } }
@media (max-width: 640px) { header { padding: 14px 16px; } .brand strong { font-size: 15px; } #service-status { font-size: 11px; } main { padding: 20px 16px; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics div { padding: 15px 7px; } .metrics strong { font-size: 22px; } .metrics span { font-size: 12px; } .commands button { padding: 7px 10px; } }
