:root {
  --ink: #17212b;
  --muted: #6d7782;
  --line: #e3e8ec;
  --canvas: #f5f7f8;
  --panel: #ffffff;
  --navy: #163a5b;
  --blue: #2879b8;
  --green: #1c8a5d;
  --green-bg: #e7f5ee;
  --amber: #a76a00;
  --amber-bg: #fff4d9;
  --red: #b33b3b;
  --red-bg: #fceaea;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 244px; background: #102c43; color: #d9e4ec; padding: 24px 16px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 34px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: #2c82bd; font-weight: 800; letter-spacing: .5px; }
.brand strong, .brand span { display: block; }
.brand strong { color: #fff; font-size: 14px; }
.brand span { margin-top: 3px; color: #8da7ba; font-size: 11px; }
.nav { display: grid; gap: 5px; }
.nav-item { padding: 11px 12px; color: #aac0cf; text-decoration: none; display: flex; align-items: center; gap: 11px; border-left: 3px solid transparent; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: #1c4768; border-left-color: #5bb4ed; }
.nav-icon { width: 17px; text-align: center; color: #91c9e9; font-size: 17px; }
.sidebar-foot { margin-top: auto; padding: 16px 9px 3px; border-top: 1px solid rgba(255,255,255,.12); }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.version { color: #7591a5; margin-top: 12px; font-size: 11px; }
.status-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #aeb8c0; }
.status-dot.green { background: #49c78d; }
.status-dot.amber { background: #e6a83f; }
.status-dot.red { background: #e26d6d; }
.main { min-width: 0; flex: 1; padding: 27px 38px 42px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.eyebrow { color: #7a8791; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
h1, h2, p { margin: 0; }
h1 { margin-top: 5px; font-size: 27px; letter-spacing: 0; }
h2 { font-size: 17px; letter-spacing: 0; }
.section-heading p { color: var(--muted); margin-top: 6px; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 16px; }
.demo-badge { color: #8b5a00; background: #fff1c9; padding: 5px 8px; font-size: 11px; }
.connection { color: var(--green); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 21px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; background: #dbe8f2; color: var(--navy); font-weight: 700; border-radius: 50%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 27px; }
.stat { background: var(--panel); border: 1px solid var(--line); padding: 17px 19px; }
.stat-label, .stat-meta { display: block; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat strong { display: block; margin: 7px 0 4px; font-size: 26px; font-weight: 700; }
.stat-meta { font-size: 11px; color: #99a3ab; }
.green-text { color: var(--green); }.amber-text { color: var(--amber); }.blue-text { color: var(--blue); }
.section { background: var(--panel); border: 1px solid var(--line); }
.section-heading { padding: 20px 21px 17px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.section-heading.compact { align-items: flex-start; padding: 19px 20px 14px; }
.toolbar { display: flex; gap: 9px; align-items: center; }
.search { border: 1px solid var(--line); display: flex; align-items: center; width: 238px; color: #83909a; background: #fff; }
.search span { padding-left: 10px; font-size: 19px; }.search input { width: 100%; padding: 9px 10px 9px 7px; border: 0; outline: 0; font-size: 12px; }
select { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 26px 9px 10px; font-size: 12px; }
.bulk-bar { padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; background: #edf5fa; border-top: 1px solid #d7e8f3; border-bottom: 1px solid #d7e8f3; color: var(--navy); font-size: 12px; }
.bulk-bar > div { display: flex; align-items: center; gap: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { text-align: left; padding: 13px 14px; border-top: 1px solid #edf0f2; white-space: nowrap; }
th { color: #7c8790; background: #fbfcfc; font-size: 11px; font-weight: 600; }
td { font-size: 12px; }.check-col { width: 44px; padding-left: 20px; }.action-col { width: 205px; text-align: right; padding-right: 20px; }
input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; }
.server-name { font-weight: 700; color: var(--navy); }.server-address { display: block; color: #8b969e; margin-top: 4px; font-size: 11px; }
.os-name { display: block; }.build { color: #9aa4aa; font-size: 11px; margin-top: 4px; display: block; }
.note-cell { min-width: 150px; max-width: 240px; white-space: pre-wrap; overflow-wrap: anywhere; color: #69757e; line-height: 1.45; }.note-empty { color: #b0b8bd; }.note-edit { display: block; margin-top: 5px; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; font-size: 11px; }
.pill.online { color: var(--green); background: var(--green-bg); }.pill.warning { color: var(--amber); background: var(--amber-bg); }.pill.offline { color: var(--red); background: var(--red-bg); }
.idle { color: var(--ink); }.idle.quiet { color: var(--amber); }.idle.none { color: #a3abb1; }
.row-actions { display: flex; justify-content: flex-end; gap: 7px; }
.button { border: 1px solid transparent; padding: 8px 11px; font-size: 12px; }
.button.primary { color: #fff; background: var(--blue); }.button.primary:hover { background: #1d659b; }
.button.ghost { color: var(--navy); background: #fff; border-color: #cfd9df; }.button.ghost:hover { background: #f2f7fa; }
.button.danger { color: #fff; background: var(--red); }.button.danger:hover { background: #932e2e; }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 7px 4px; font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.empty { padding: 40px; text-align: center; color: var(--muted); }.hidden { display: none !important; }
.lower-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
.activity-list { border-top: 1px solid #edf0f2; }.activity-item { padding: 12px 20px; display: grid; grid-template-columns: 94px 1fr auto; gap: 13px; align-items: center; border-bottom: 1px solid #edf0f2; }
.activity-time { color: #919ba3; font-size: 11px; }.activity-main strong { font-size: 12px; font-weight: 600; }.activity-main span { display: block; color: #8a959d; margin-top: 4px; font-size: 11px; }
.result { font-size: 11px; padding: 4px 7px; }.result.success { color: var(--green); background: var(--green-bg); }.result.failed { color: var(--red); background: var(--red-bg); }.result.queued { color: var(--amber); background: var(--amber-bg); }
.health-list { padding: 0 20px 14px; }.health-list div { display: flex; justify-content: space-between; padding: 13px 0; border-top: 1px solid #edf0f2; color: #69757e; font-size: 12px; }.health-list strong { color: var(--ink); font-size: 12px; font-weight: 600; }.health-ok { color: var(--green) !important; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 30, 43, .48); display: grid; place-items: center; padding: 20px; z-index: 5; }
.modal { width: min(430px, 100%); background: #fff; padding: 25px; position: relative; box-shadow: 0 18px 50px rgba(0,0,0,.2); }.modal h2 { margin-top: 6px; font-size: 20px; }.modal-copy { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 9px 0 17px; }.modal-close { position: absolute; right: 14px; top: 11px; border: 0; background: transparent; color: #7d8991; font-size: 25px; }
.target-box { padding: 11px 12px; background: #f2f6f8; margin-bottom: 17px; display: flex; justify-content: space-between; font-size: 12px; }.target-box span { color: var(--muted); }.target-box strong { color: var(--navy); }
.field-label { display: block; color: #68757e; margin: 12px 0 6px; font-size: 12px; }.field { width: 100%; padding: 10px; border: 1px solid #cfd9df; outline: 0; }.field:focus { border-color: var(--blue); }.modal-error { color: var(--red); background: var(--red-bg); padding: 9px; margin-top: 13px; font-size: 12px; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.note-field { min-height: 116px; resize: vertical; line-height: 1.5; }.note-counter { color: #9aa4aa; text-align: right; margin-top: 5px; font-size: 11px; }
.toast { position: fixed; bottom: 24px; right: 26px; background: #183d5b; color: #fff; padding: 12px 16px; font-size: 12px; box-shadow: 0 8px 22px rgba(0,0,0,.16); z-index: 10; }
.task-section { margin-top: 18px; }
.modal { max-height: calc(100dvh - 40px); overflow-y: auto; }
.target-box { gap: 12px; }
.target-box strong { min-width: 0; overflow-wrap: anywhere; }
button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 900px) { .sidebar { width: 194px; }.main { padding: 24px; }.stats { grid-template-columns: repeat(2, 1fr); }.lower-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .sidebar { display: none; }.main { padding: 18px 14px 30px; }.topbar { align-items: flex-start; }.connection { display: none; }.section-heading { align-items: flex-start; flex-direction: column; }.toolbar { width: 100%; }.search { flex: 1; width: auto; }.stats { gap: 8px; }.stat { padding: 14px; }.stat strong { font-size: 22px; }.activity-item { grid-template-columns: 75px 1fr; }.activity-item .result { grid-column: 2; justify-self: start; } }
