:root { --primary:#1769e0; --ink:#1f2329; --muted:#646a73; --line:#e5e8eb; --bg:#f5f7fa; --danger:#d93026; --ok:#0a8754; }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; color:var(--ink); background:var(--bg); font-size:14px; }
.hidden { display:none !important; }
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#eaf2ff,#f5f7fa); }
.login-card { width:380px; padding:36px; background:#fff; border-radius:16px; box-shadow:0 12px 40px rgba(31,35,41,.1); display:flex; flex-direction:column; gap:16px; }
.brand { font-size:24px; font-weight:700; text-align:center; }
.brand-sub { color:var(--muted); text-align:center; margin-top:-8px; }
label { display:flex; flex-direction:column; gap:6px; color:var(--muted); }
input,select,textarea { padding:10px 12px; border:1px solid var(--line); border-radius:8px; font-size:14px; font-family:inherit; background:#fff; color:var(--ink); }
textarea { min-height:90px; }
button { cursor:pointer; border:none; border-radius:8px; padding:10px 16px; font-size:14px; font-family:inherit; }
.primary { background:var(--primary); color:#fff; }
.ghost { background:transparent; border:1px solid var(--line); color:var(--muted); }
.danger { background:#fff1f0; color:var(--danger); }
.msg { color:var(--danger); min-height:18px; margin:0; }
.hint { color:var(--muted); font-size:12px; margin:0; }
.topbar { height:60px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 24px; }
.logo { font-size:18px; font-weight:700; }
.logo span { font-size:12px; color:var(--primary); border:1px solid var(--primary); border-radius:6px; padding:2px 6px; margin-left:8px; }
.top-right { display:flex; align-items:center; gap:16px; color:var(--muted); }
.layout { display:flex; min-height:calc(100vh - 60px); }
.sidebar { width:210px; background:#fff; border-right:1px solid var(--line); padding:16px 8px; flex-shrink:0; }
.sidebar button { display:block; width:100%; text-align:left; background:transparent; margin-bottom:4px; color:var(--ink); }
.sidebar button.active { background:#eaf2ff; color:var(--primary); font-weight:600; }
.content { flex:1; padding:24px; max-width:1200px; }
.banner { background:#fff7e6; border:1px solid #ffd591; padding:12px 16px; border-radius:8px; margin-bottom:16px; }
.banner.error { background:#fff1f0; border-color:#ffccc7; color:var(--danger); }
h2 { font-size:20px; margin:0 0 16px; }
h3 { font-size:16px; margin:20px 0 10px; }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:16px; }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:end; margin-bottom:16px; }
.toolbar label { min-width:150px; }
table { width:100%; border-collapse:collapse; background:#fff; }
th,td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--muted); font-weight:600; background:#fafbfc; }
.tag { display:inline-block; padding:2px 8px; border-radius:10px; background:#eaf2ff; color:var(--primary); font-size:12px; }
.tag.warn { background:#fff7e6; color:#ad6800; }
.tag.danger { background:#fff1f0; color:var(--danger); }
.tag.ok { background:#e8fffb; color:var(--ok); }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.report-body { background:#fff; border:1px solid var(--line); border-radius:12px; padding:24px; line-height:1.7; }
.report-body pre { white-space:pre-wrap; word-break:break-word; background:#f7f8fa; padding:12px; border-radius:8px; font-size:12px; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.35); display:flex; align-items:center; justify-content:center; z-index:50; }
.modal-card { background:#fff; width:560px; max-height:80vh; overflow:auto; border-radius:12px; padding:20px; }
.modal-head { display:flex; justify-content:space-between; align-items:center; font-size:18px; font-weight:600; margin-bottom:16px; }
.modal-actions { display:flex; justify-content:flex-end; margin-top:16px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.muted { color:var(--muted); }
code { background:#f2f3f5; padding:2px 6px; border-radius:4px; }
@media(max-width:800px){ .grid2,.form-grid{grid-template-columns:1fr;} .sidebar{width:150px;} }
