* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2933; background: #f3f5f7; }
a { color: #0b6bcb; text-decoration: none; }
a:hover { text-decoration: underline; }
.app { min-height: 100vh; display: flex; background: #eef2f6; }
.side { width: 220px; flex: 0 0 220px; background: #16324f; color: #fff; display: flex; flex-direction: column; min-height: 100vh; }
.brand { padding: 22px 20px 14px; font-size: 18px; font-weight: 700; }
.side nav { display: flex; flex-direction: column; padding: 8px 12px; gap: 4px; }
.side nav a { color: #d5e4f2; border-radius: 8px; padding: 10px 12px; }
.side nav a.on, .side nav a:hover { background: #0e2438; color: #fff; text-decoration: none; }
.side-foot { margin-top: auto; padding: 16px 20px 22px; border-top: 1px solid rgba(255,255,255,.12); }
.side-foot a { color: #d5e4f2; }
.who { font-size: 14px; margin-bottom: 6px; }
.content { flex: 1; min-width: 0; }
main { max-width: 1100px; margin: 0 auto; padding: 24px; }
.card { background: #fff; border: 1px solid #e3e8ee; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
h1 { font-size: 22px; margin: 0 0 14px; }
h2 { font-size: 16px; margin: 0 0 12px; }
label { display: block; font-weight: 600; margin: 12px 0 6px; }
.hint { color: #627083; font-size: 13px; font-weight: 400; }
input[type=text], input[type=password], select, textarea { width: 100%; padding: 8px 10px; border: 1px solid #c9d2dc; border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 140px; font-family: Consolas, "Courier New", monospace; }
.actions { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
button, .btn { display: inline-block; border: 0; border-radius: 6px; padding: 8px 14px; background: #0b6bcb; color: #fff; font: inherit; cursor: pointer; }
button.ghost, .btn.ghost { background: #e8eef5; color: #1f2933; }
button.danger, .btn.danger { background: #b42318; }
button:hover, .btn:hover { text-decoration: none; filter: brightness(0.96); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e8edf2; vertical-align: top; }
th { font-size: 13px; color: #627083; }
.msg { border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.msg.ok { background: #e8f6ee; color: #146c43; }
.msg.err { background: #fdecea; color: #9f1d14; }
.msg ul { margin: 0; padding-left: 18px; }
.login { max-width: 420px; margin: 48px auto; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { width: auto; }
.muted { color: #627083; font-size: 13px; }
.nowrap { white-space: nowrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.filters a { background: #e8eef5; color: #1f2933; border-radius: 999px; padding: 6px 12px; }
.filters a.on { background: #16324f; color: #fff; }
.filters a:hover { text-decoration: none; }
.table-wrap { overflow-x: auto; }
@media (max-width: 800px) {
    .app { display: block; }
    .side { width: auto; min-height: 0; }
    .side nav { flex-direction: row; overflow-x: auto; }
    .side-foot { display: flex; gap: 12px; align-items: center; margin-top: 0; }
}
