body { margin:0; font-family: Arial, 'Microsoft YaHei', sans-serif; background:#f5f7fb; color:#1e293b; }
.layout { display:flex; min-height:100vh; }
.sidebar { width:220px; background:#111827; color:#fff; padding:24px; box-sizing:border-box; }
.sidebar h2 { font-size:20px; margin:0 0 20px; }
.sidebar a { display:block; color:#e5e7eb; text-decoration:none; padding:10px 12px; border-radius:8px; margin-bottom:6px; }
.sidebar a:hover { background:#1f2937; }
.main { flex:1; padding:24px; box-sizing:border-box; }
.flash-wrap { margin-bottom:16px; }
.flash { background:#fff7ed; color:#9a3412; padding:12px 14px; border-radius:10px; margin-bottom:8px; border:1px solid #fed7aa; }
h1, h2 { margin-top:0; }
.card-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:16px; margin-bottom:24px; }
.card { background:#fff; padding:16px; border-radius:14px; box-shadow:0 4px 16px rgba(0,0,0,.06); }
.label { font-size:14px; color:#64748b; margin-bottom:8px; }
.value { font-size:24px; font-weight:bold; }
table { width:100%; border-collapse:collapse; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 4px 16px rgba(0,0,0,.06); }
th, td { padding:12px 10px; border-bottom:1px solid #e5e7eb; text-align:left; vertical-align:top; font-size:14px; }
th { background:#f8fafc; }
.actions, .inline-form { margin-bottom:16px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.form-box { background:#fff; padding:20px; border-radius:14px; box-shadow:0 4px 16px rgba(0,0,0,.06); max-width:700px; }
.form-box label { display:block; margin:14px 0 6px; font-weight:bold; }
.form-box input, .form-box textarea { width:100%; padding:10px 12px; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:10px; }
.form-box textarea { min-height:100px; }
button, .btn { display:inline-block; background:#2563eb; color:#fff; border:none; padding:9px 14px; border-radius:10px; cursor:pointer; text-decoration:none; font-size:14px; }
.btn.secondary { background:#475569; }
.btn.ok { background:#059669; }
.btn.danger { background:#dc2626; }
.btn.small { padding:6px 10px; font-size:12px; }
.ops { min-width:280px; }
.login-page { display:flex; min-height:100vh; align-items:center; justify-content:center; }
.login-box { width:360px; background:#fff; padding:28px; border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.08); }
.login-box label { display:block; margin-top:14px; margin-bottom:6px; }
.login-box input { width:100%; padding:10px 12px; box-sizing:border-box; border:1px solid #cbd5e1; border-radius:10px; }
.login-box button { width:100%; margin-top:18px; }
.trend-box { background:#fff; padding:16px; border-radius:14px; box-shadow:0 4px 16px rgba(0,0,0,.06); margin-bottom:24px; }
.trend-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.trend-date { width:110px; color:#475569; }
.trend-bar { flex:1; height:14px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.trend-bar span { display:block; height:100%; background:#3b82f6; border-radius:999px; }
.trend-text { min-width:260px; font-size:13px; color:#334155; }
