
    :root{font:14px/1.6 "Segoe UI","Microsoft YaHei",sans-serif;color:#263142;background:#f5f7fa;color-scheme:light;--line:#dfe5ed;--muted:#69778a;--blue:#2463dc}
    *{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #ccd5e1;border-radius:6px;padding:7px 14px;background:white;color:inherit}button:hover{background:#f1f5fb}button:disabled{cursor:not-allowed;color:#9ba6b5;background:#f8fafc}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a5c4fb;outline-offset:2px}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:#1c51b7}.primary:disabled{background:#e8eef8;border-color:#dfe5ed}
    header{background:white;border-bottom:1px solid var(--line);padding:18px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}h1{font-size:19px;font-weight:650;letter-spacing:.02em;margin:0}.subtitle{color:var(--muted);font-size:12px;margin-top:2px}.draft{font-size:12px;color:#735c23;background:#fbf3de;padding:4px 10px;border-radius:4px}main{padding:24px 32px;max-width:1600px;margin:auto}.toolbar{background:white;border:1px solid var(--line);border-radius:8px;padding:18px 20px;display:flex;align-items:center;gap:26px;flex-wrap:wrap}.group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.group-title{font-size:12px;color:var(--muted);margin-right:5px}.spacer{flex:1}.options{padding:16px 2px;display:flex;gap:24px;flex-wrap:wrap;color:#596679;font-size:13px}label.check{display:flex;align-items:center;gap:6px}input[type=checkbox]{accent-color:var(--blue)}
    .results{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.result-head{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line)}h2{font-size:14px;margin:0;font-weight:600}.count{font-size:12px;color:var(--muted);font-weight:400;margin-left:10px}.table-wrap{overflow:auto}table{width:100%;min-width:820px;border-collapse:collapse;white-space:nowrap}th{font-weight:500;color:#617086;text-align:left;background:#fafbfd;padding:11px 18px;border-bottom:1px solid var(--line);font-size:12px}td{padding:12px 18px;border-bottom:1px solid var(--line)}.empty{text-align:center;height:350px;color:var(--muted);white-space:normal}.empty strong{display:block;color:#485970;font-size:15px;font-weight:500;margin-bottom:8px}.empty p{margin:0 0 20px;font-size:13px}.status{border-top:1px solid var(--line);padding:12px 18px;display:flex;align-items:center;gap:16px;font-size:12px;color:var(--muted);flex-wrap:wrap}.status strong{color:#42526a;font-weight:500}.dot{display:inline-block;width:7px;height:7px;background:#a3adba;border-radius:50%;margin-right:6px}.footnote{color:var(--muted);font-size:12px;margin:14px 2px}dialog{padding:0;width:540px;max-width:calc(100vw - 32px);border:1px solid var(--line);border-radius:10px;color:inherit;box-shadow:0 16px 60px #15233b22}dialog::backdrop{background:#1d2b4340}.modal-head{padding:19px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:17px}.close{border:0;background:transparent;padding:0 6px;font-size:22px;color:var(--muted)}.modal-body{padding:22px 24px}.modal-body p{margin-top:0;color:var(--muted);font-size:13px}.field{display:block;margin-bottom:16px}.field input:not([type=checkbox]),.field select,.field textarea{display:block;width:100%;padding:9px 10px;margin-top:6px;border:1px solid #ccd5e1;border-radius:5px;background:white;color:inherit}.field textarea{resize:vertical;min-height:140px}.row{display:flex;gap:16px}.row>*{flex:1}.hint{font-size:12px;color:var(--muted);margin-top:6px}.modal-foot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:15px 24px}.preview-note{font-size:12px;color:#856a2a;background:#fffbf0;padding:10px 12px;border-radius:5px;margin-top:12px}.hidden{display:none}details{position:relative}summary{list-style:none;cursor:pointer;border:1px solid #ccd5e1;border-radius:6px;padding:6px 12px;font-size:13px}summary::-webkit-details-marker{display:none}.menu{position:absolute;right:0;top:40px;width:170px;background:white;border:1px solid var(--line);border-radius:6px;padding:6px;box-shadow:0 5px 18px #15233b18;z-index:2}.menu button{display:block;text-align:left;width:100%;border:0;border-radius:3px;font-size:13px}.menu label{padding:7px;font-size:13px;border-bottom:1px solid var(--line);margin-bottom:4px}.notice{min-height:20px;color:#856a2a;font-size:12px;margin:10px 2px}
    @media(max-width:720px){header{padding:16px;align-items:flex-start}main{padding:16px}.toolbar{gap:16px;padding:16px}.toolbar .spacer{display:none}.group{width:100%}.group-title{min-width:56px}.empty{height:310px;text-align:left;padding:24px}.empty p{max-width:260px}.draft{white-space:nowrap}.result-head{padding:12px}.status{padding:12px;gap:10px}.row{display:block}.options{gap:14px}.subtitle{max-width:220px}}
  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  [hidden]{display:none!important}.login-page{min-height:100vh;display:grid;place-items:center}.login-box{width:390px;max-width:calc(100vw - 32px);background:#fff;border:1px solid var(--line);border-radius:9px;padding:32px}.login-box h1{font-size:22px}.login-box form{margin-top:26px}.login-box .primary{width:100%}.form-error{color:#a32929;font-size:13px;white-space:pre-wrap;margin:12px 0 0}.notice.error{color:#a32929}.notice.success{color:#267747}.preview-result{background:#f4f7fb;padding:12px;font-size:12px;overflow-wrap:anywhere;border-radius:5px}.preview-result p{margin:4px 0}.result-head select{max-width:150px;padding:6px;border:1px solid #ccd5e1;border-radius:6px;color:inherit;background:#fff;font:inherit;font-size:12px}.group.compact{width:auto}.pagination{padding:10px 18px;display:flex;justify-content:flex-end;align-items:center;gap:12px;font-size:12px;border-top:1px solid var(--line)}.pagination button{padding:4px 10px;font-size:12px}.results{overflow:visible}.table-wrap{border-radius:0 0 8px 8px}.badge{display:inline-block;background:#f1f4f8;border-radius:4px;padding:2px 8px;font-size:12px;color:#5e6d82}.badge.good{color:#226b43;background:#edf8f1}.badge.bad{color:#a23e3e;background:#fcf0f0}.badge.wait{color:#856a2a;background:#fff8e6}.account-link{border:0;padding:0;color:#245bad;background:none;font-size:inherit;text-align:left}.account-link:hover{background:none;text-decoration:underline}td:last-child{white-space:normal;min-width:180px;max-width:300px;font-size:12px;color:var(--muted)}.empty button{font-size:14px}.status #counts{word-spacing:7px}dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:9px 14px;font-size:13px}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.modal-body{max-height:65vh;overflow:auto}.hint{display:block}button:disabled{pointer-events:none}.form-error:empty,.notice:empty{display:none}button[aria-busy=true]{opacity:.7}
  @media(max-width:720px){.result-head{align-items:flex-start;flex-wrap:wrap}.result-head .compact{gap:8px}.toolbar .group{gap:8px}.toolbar .group-title{width:100%}.toolbar button{min-height:42px}.table-wrap{max-width:100%}header button{white-space:nowrap}.modal-body{padding:18px;max-height:60vh}.modal-head{padding:15px 18px}.modal-foot{padding:12px 18px}.menu{right:0}.status #counts{line-height:2}dl{grid-template-columns:90px minmax(0,1fr)}}

.table-wrap{min-height:390px;max-height:60vh}thead th{position:sticky;top:0;z-index:1}.query-health{max-height:180px;overflow:auto;border:1px solid var(--line);border-radius:5px;padding:8px 12px;margin-bottom:16px}.query-health p{margin:4px 0;font-size:12px}

.hidden{display:none!important}
.header-actions{display:flex;gap:8px;flex-shrink:0}#password-hint{margin:-8px 0 16px}.modal-body .form-error{color:#a32929}
@media(max-width:540px){header{flex-wrap:wrap}.header-actions{width:100%;justify-content:flex-end}.header-actions button{min-height:42px}}
