:root {
  --ink: #172033;
  --muted: #667085;
  --line: #e6e9ef;
  --paper: #ffffff;
  --wash: #f3f6fa;
  --navy: #142b4a;
  --blue: #2c64d8;
  --green: #157f5b;
  --amber: #a15c00;
  --red: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; }
h1,h2,h3,p { margin-top: 0; }
.topbar { min-height: 88px; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--navy); border-bottom: 4px solid #3f7ae0; }
.topbar h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: .02em; }
.eyebrow { margin-bottom: 4px; color: #8faee4; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.userbox { display: flex; align-items: center; gap: 18px; }
.link-button { padding: 0; color: #d7e3f6; background: none; border: 0; cursor: pointer; }
.layout { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100vh - 88px); }
.sidebar { padding: 24px 18px; background: #fff; border-right: 1px solid var(--line); }
.sidebar > a { display: block; margin-bottom: 6px; padding: 11px 13px; color: #344054; text-decoration: none; border-radius: 6px; }
.sidebar > a:hover { color: var(--blue); background: #eef4ff; }
.privacy-note { margin-top: 28px; padding: 14px; color: #31537c; background: #edf5ff; border: 1px solid #d2e5ff; border-radius: 8px; }
.privacy-note strong,.privacy-note span { display: block; }
.privacy-note span { margin-top: 5px; font-size: 12px; line-height: 1.6; }
.content { width: 100%; max-width: 1440px; padding: 30px; }
.page-heading,.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-heading { margin-bottom: 20px; }
.page-heading h2 { margin-bottom: 0; font-size: 26px; }
.badge { padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { color: #086444; background: #dff7ed; }
.badge.pending { color: var(--amber); background: #fff1d6; }
.cards { display: grid; gap: 14px; margin-bottom: 20px; }
.cards.five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.card,.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 16px rgba(23,32,51,.04); }
.card { padding: 18px; border-top: 3px solid #5b8ee6; }
.card span { display: block; color: var(--muted); font-size: 13px; }
.card strong { display: block; margin-top: 8px; font-size: 28px; }
.card small { color: var(--muted); font-size: 12px; }
.grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.panel { padding: 20px; }
.panel-title { margin-bottom: 16px; }
.panel-title h3,.panel h3 { margin-bottom: 0; font-size: 16px; }
.panel-title span,.panel-title a { color: var(--muted); font-size: 12px; }
.definition-list { margin: 12px 0 0; }
.definition-list div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.definition-list div:last-child { border-bottom: 0; }
.definition-list dt { color: var(--muted); }
.definition-list dd { margin: 0; font-weight: 700; }
.definition-list dd.breakable { max-width: 65%; overflow-wrap: anywhere; text-align: right; }
.mini-table div { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-table small { color: var(--muted); }
.empty { display: grid; min-height: 190px; place-items: center; color: var(--muted); border: 1px dashed #cfd5df; border-radius: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th,td { padding: 12px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #f8fafc; font-weight: 700; }
.empty-cell { padding: 34px; color: var(--muted); text-align: center; }
code { color: #344054; font-size: 11px; }
.status-text { font-weight: 700; }
.status-text.success { color: var(--green); }
.status-text.failed,.status-text.blocked { color: var(--red); }
.form-stack { display: grid; gap: 15px; }
.form-stack label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 700; }
input { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #bfc7d4; border-radius: 6px; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(44,100,216,.12); }
button.primary { padding: 12px 16px; color: white; background: var(--blue); border: 0; border-radius: 6px; font-weight: 800; cursor: pointer; }
.alert { margin: 14px 0; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.alert.error { color: #8a1c13; background: #fee9e7; }
.alert.success { color: #086444; background: #dff7ed; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: linear-gradient(135deg,#102641,#244f83); }
.login-card { width: min(420px,100%); padding: 34px; background: white; border-top: 5px solid #4c84e5; border-radius: 10px; box-shadow: 0 22px 55px rgba(0,0,0,.24); }
.login-card h1 { margin-bottom: 8px; }
.muted,.privacy-line { color: var(--muted); }
.compact-note { margin: 12px 0 18px; font-size: 12px; line-height: 1.7; }
.privacy-line { margin: 20px 0 0; font-size: 11px; text-align: center; }
@media (max-width: 1050px) { .cards.five { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .topbar { padding: 16px 18px; } .layout { grid-template-columns: 1fr; } .sidebar { display: flex; gap: 6px; overflow-x: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line); } .sidebar > a { min-width: max-content; margin: 0; } .privacy-note { display: none; } .content { padding: 20px 14px; } .grid-two,.cards.five { grid-template-columns: 1fr; } .userbox span { display: none; } }
