:root { --bg:#0f1420; --panel:#161d2c; --line:#243047; --text:#e6edf7; --muted:#8fa3bf; --accent:#4f8cff; }
* { box-sizing: border-box; }
body { margin:0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background:var(--bg); color:var(--text); }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 20px; border-bottom:1px solid var(--line); background:var(--panel); flex-wrap:wrap; }
.brand { font-size:18px; font-weight:600; }
.brand span { color:var(--muted); font-weight:400; font-size:14px; margin-left:6px; }
.settings { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.settings label { font-size:12px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.settings input { background:#0b111b; border:1px solid var(--line); color:var(--text); border-radius:6px; padding:6px 8px; font-size:12px; width:220px; }
.settings input#tenantCode { width:110px; }
button { background:var(--accent); color:#fff; border:0; border-radius:6px; padding:7px 14px; font-size:13px; cursor:pointer; }
.layout { display:flex; min-height:calc(100vh - 57px); }
.sidebar { width:200px; border-right:1px solid var(--line); padding:14px 0; }
.sidebar a { display:block; padding:10px 20px; color:var(--muted); text-decoration:none; font-size:14px; }
.sidebar a:hover { color:var(--text); background:#131a28; }
.view { flex:1; padding:20px 24px; overflow:auto; }
h2 { font-size:18px; margin:0 0 14px; }
h3 { font-size:14px; color:var(--muted); margin:22px 0 10px; }
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px,1fr)); gap:12px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px; display:flex; flex-direction:column; gap:8px; }
.card span { color:var(--muted); font-size:12px; }
.card strong { font-size:22px; }
table { width:100%; border-collapse:collapse; font-size:13px; background:var(--panel); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); white-space:nowrap; }
th { color:var(--muted); font-weight:500; background:#131a28; }
tr:last-child td { border-bottom:0; }
.hint { color:var(--muted); font-size:13px; }
.error { color:#ff7b7b; font-size:13px; }
