:root { --bg: #f5f6f8; --paper: #fff; --ink: #222d39; --muted: #87919f; --line: #e9edf1; --green: #247c68; --green-light: #eaf5ef; --orange: #ab7542; --red: #c05151; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); font-size: 14px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { transition: background .15s, border-color .15s; }
button:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #8fbdae; outline-offset: 3px; }
[hidden] { display: none !important; }
.sidebar { width: 226px; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--line); padding: 30px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 650; padding: 0 8px; }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 19px; }
.brand small { display: block; font-size: 8px; letter-spacing: 1.3px; color: var(--muted); margin-top: 5px; font-weight: 500; }
.nav-label { color: #a1a8b3; font-size: 11px; margin: 44px 16px 12px; letter-spacing: 2px; }
nav { display: grid; gap: 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 14px 16px; border-radius: 8px; text-align: left; color: #7a8390; }
.nav-item:hover { background: #f5f7f6; }
.nav-item.active { color: var(--green); background: var(--green-light); font-weight: 600; }
.nav-icon { font-size: 20px; width: 21px; text-align: center; font-weight: 400; line-height: 1; }
.nav-arrow { margin-left: auto; opacity: 0; font-size: 18px; }
.nav-item.active .nav-arrow { opacity: 1; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: #626e78; padding: 20px 14px 0; border-top: 1px solid var(--line); }
.sidebar-foot small { display: block; margin: 9px 0 0 13px; color: #a0a7b1; font-size: 11px; }
.status-dot { display: inline-block; width: 6px; height: 6px; background: #6aab90; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.status-dot.offline { background: #d28a59; }
main { margin-left: 226px; padding: 0 38px 26px; min-height: 100vh; }
.topbar { height: 76px; border-bottom: 1px solid #e5e9ee; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #84909d; }
#breadcrumb { color: #46505c; }
.separator { margin: 0 14px; color: #b8c1cc; }
.connection { display: flex; align-items: center; gap: 5px; }
.text-button { border: 0; background: none; color: var(--green); padding: 8px 0 8px 16px; font-size: 12px; }
.auth-panel { background: #fff; border: 1px solid var(--line); border-radius: 9px; margin-top: 20px; padding: 20px; }
.auth-panel form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.auth-panel input { min-width: 220px; flex: 1; }
.auth-panel p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 26px; }
.eyebrow { font-size: 10px; color: var(--green); letter-spacing: 1.8px; font-weight: 600; }
h1 { font-size: 27px; font-weight: 650; margin: 10px 0; letter-spacing: -.8px; }
.page-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.heading-actions { display: flex; align-items: center; gap: 17px; }
.date-label { font-size: 12px; color: #89929e; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 15px; border: 1px solid #dce2e8; border-radius: 6px; background: #fff; color: #596572; font-size: 12px; white-space: nowrap; }
.button:hover { background: #f5f8f6; border-color: #9fb7ad; }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: #1c6857; }
.button.subtle { background: none; border-color: transparent; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 21px 22px 17px; }
.stat-title { color: #6c7784; font-size: 12px; display: flex; align-items: center; justify-content: space-between; }
.stat-symbol { font-size: 17px; background: #f5f7f8; border-radius: 6px; width: 30px; height: 30px; display: grid; place-items: center; color: #87959f; }
.stat strong { display: block; font-size: 31px; font-weight: 600; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.stat p { color: #97a0ac; font-size: 11px; margin: 0; }
#stat-active { color: var(--green); font-weight: 600; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.panel-title { padding: 23px 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.panel-title p { font-size: 11px; color: #929ba6; margin: 8px 0 0; }
.panel-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
#import-file { height: auto; padding: 12px; }
#import-file::file-selector-button { border: 0; border-radius: 4px; padding: 7px 10px; margin-right: 12px; background: var(--green-light); color: var(--green); cursor: pointer; }
.import-summary { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 10px; }
.import-summary span { padding: 9px 12px; border-radius: 5px; background: #f5f7f8; font-size: 12px; color: #6a7781; }
.import-summary strong { color: var(--green); margin-left: 4px; }
#import-result .table-wrap { max-height: 260px; border: 1px solid var(--line); border-radius: 6px; }
#import-result th { position: sticky; top: 0; }
#import-result td, #import-result th { padding: 10px 12px; }
#import-result td:last-child { white-space: normal; min-width: 170px; }
#import-result .code { overflow-wrap: anywhere; white-space: normal; max-width: 230px; }
.count { color: #8b96a2; border-radius: 5px; background: #f1f3f5; padding: 3px 7px; font-size: 10px; margin-left: 7px; font-weight: 400; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 24px 22px; }
input, select { height: 37px; padding: 8px 11px; border-radius: 5px; border: 1px solid #dfe4ea; background: #fff; color: #53606b; outline: none; font-size: 12px; min-width: 0; }
input:focus, select:focus { border-color: #6aab90; box-shadow: 0 0 0 3px #edf5f0; }
input::placeholder { color: #a1a9b4; }
.search-field { display: flex; align-items: center; border: 1px solid #dfe4ea; border-radius: 5px; padding-left: 12px; width: 275px; }
.search-field span { font-size: 21px; color: #8d97a3; }
.search-field input { border: none; width: 100%; box-shadow: none; }
.search-field:focus-within { border-color: #6aab90; }
.toolbar select { min-width: 130px; }
.toolbar label { font-size: 12px; color: #73808c; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
th { font-weight: 500; color: #939ca7; background: #fafbfc; font-size: 11px; padding: 14px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 18px 20px; border-bottom: 1px solid #f0f2f5; font-size: 12px; color: #66717e; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
tbody tr:hover { background: #fcfdfd; }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #465562; font-size: 12px; }
.code-button { border: 0; background: none; text-align: left; padding: 0; cursor: pointer; max-width: 190px; text-overflow: ellipsis; overflow: hidden; vertical-align: middle; }
.code-button:hover { color: var(--green); }
.quota { display: flex; align-items: center; gap: 8px; }
.quota strong { font-size: 13px; font-weight: 600; color: #4f675e; }
.quota span { color: #a8b1ba; }
.quota .meter { width: 44px; height: 4px; background: #edf1ef; border-radius: 4px; overflow: hidden; display: flex; gap: 3px; }
.meter i { width: 50%; background: #94b9a4; }
.badge { display: inline-block; padding: 4px 8px; background: #f1f4f6; color: #7e8996; border-radius: 4px; font-size: 10px; }
.badge.green { color: #4b8972; background: #edf6f0; }
.badge.orange { color: #ad8352; background: #faf2e8; }
.badge.red { color: #bc6262; background: #fcf0f0; }
.row-actions { display: flex; justify-content: flex-end; gap: 12px; }
.row-action { border: 0; background: none; color: var(--green); padding: 4px 0; font-size: 11px; }
.row-action:hover { text-decoration: underline; }
.align-right { text-align: right; }
.empty { text-align: center; padding: 65px 24px; color: #9aa4af; white-space: normal; line-height: 2; }
.empty strong { display: block; font-size: 14px; font-weight: 500; color: #75838f; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 67px; padding: 16px 24px; font-size: 11px; color: #98a2ad; }
.pager-controls { display: flex; align-items: center; gap: 9px; }
.pager .button { padding: 6px 10px; font-size: 11px; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: #a1a9b3; margin-top: 22px; }
.muted { color: var(--muted); font-size: 12px; }
.auto-refresh { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #84929c; white-space: nowrap; }
.auto-refresh input { height: auto; accent-color: var(--green); }
.log-details { white-space: pre-wrap; overflow-wrap: anywhere; font: 10px/1.7 ui-monospace, SFMono-Regular, monospace; color: #91a0aa; max-width: 520px; margin-top: 5px; }
#logs-panel td:last-child { white-space: normal; min-width: 240px; }
dialog { padding: 26px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); box-shadow: 0 24px 90px #172f3625; width: 420px; max-width: calc(100vw - 32px); max-height: 85vh; }
dialog::backdrop { background: #25333d45; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.dialog-heading h2 { font-size: 18px; }
.icon-button { border: none; background: none; color: #9ba6af; font-size: 24px; padding: 0 5px; }
dialog form > label { display: block; margin: 20px 0 9px; font-size: 12px; }
dialog form > input, dialog form > select { width: 100%; height: 42px; }
.field-help { color: #a0aab2; font-size: 11px; margin-top: 10px; }
.form-error { color: var(--red); font-size: 12px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.notice { margin-top: 20px; padding: 12px; background: #f4f8f5; border: 1px solid #e5eee8; border-radius: 5px; font-size: 11px; color: #789080; line-height: 1.7; }
.wide-dialog { width: 780px; }
.detail-summary { display: flex; gap: 15px; flex-wrap: wrap; padding: 15px 0 24px; color: #7d8b95; font-size: 12px; }
.detail-summary strong { color: var(--green); }
#detail-content table th, #detail-content table td { padding: 12px; }
#toast { position: fixed; right: 32px; bottom: 28px; background: #243e34; color: #fff; border-radius: 8px; padding: 14px 20px; box-shadow: 0 5px 25px #253e3422; z-index: 5; max-width: calc(100vw - 40px); font-size: 13px; }
#toast.error { background: #a54f4f; }
@media (min-width: 1600px) { main { padding-right: 60px; padding-left: 60px; } }
@media (max-width: 1100px) { .sidebar { width: 190px; padding: 26px 12px; } main { margin-left: 190px; padding: 0 24px 24px; } .stats { gap: 12px; } .stat { padding: 17px; } .date-label { display: none; } }
@media (max-width: 760px) { .sidebar { position: static; width: 100%; padding: 16px; border-right: 0; border-bottom: 1px solid var(--line); } .brand { font-size: 16px; } .brand-mark { width: 32px; height: 32px; } .brand small, .nav-label, .sidebar-foot, .nav-arrow { display: none; } nav { display: flex; gap: 4px; margin-top: 16px; } .nav-item { justify-content: center; padding: 10px 5px; gap: 5px; font-size: 11px; } .nav-icon { font-size: 16px; width: 15px; } main { margin: 0; padding: 0 16px 24px; } .topbar { height: 57px; font-size: 10px; } .separator { margin: 0 6px; } .connection { font-size: 10px; } .text-button { font-size: 10px; padding-left: 8px; } .page-heading { padding: 25px 0 22px; align-items: flex-end; } h1 { font-size: 24px; } .page-heading p { max-width: 220px; line-height: 1.8; font-size: 11px; } .heading-actions .button { padding: 9px; font-size: 11px; } .eyebrow { font-size: 8px; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; } .stat { padding: 14px; } .stat strong { font-size: 26px; } .stat p { font-size: 10px; line-height: 1.5; } .panel-title { padding: 20px 16px; align-items: flex-start; } .panel-title p { line-height: 1.7; max-width: 220px; font-size: 10px; } .panel-title .button { padding: 9px 10px; font-size: 10px; } .toolbar { padding: 0 16px 18px; gap: 8px; } .search-field { width: 100%; } .toolbar > input { max-width: 100%; flex: 1; min-width: 120px; } .pager { padding: 14px 16px; } .page-footer { font-size: 9px; line-height: 1.7; } }
