* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; background: #f6f7fb; color: #171923; }
button, input, textarea, select { font: inherit; }
button { border: 0; border-radius: 10px; padding: 9px 14px; background: #1f4fd8; color: white; cursor: pointer; }
button.secondary { background: #edf2f7; color: #1a202c; }
button.danger { background: #c53030; }
input, textarea, select { width: 100%; padding: 10px; border: 1px solid #cbd5e0; border-radius: 10px; background: white; }
textarea { min-height: 160px; }
.layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: #101828; color: white; padding: 24px; }
.sidebar h1 { font-size: 18px; margin: 0 0 20px; }
.nav button { display: block; width: 100%; margin: 8px 0; text-align: left; background: transparent; color: white; }
.nav button.active, .nav button:hover { background: rgba(255,255,255,0.12); }
.main { padding: 28px; }
.card { background: white; border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 16px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.column { background: #eef2f7; border-radius: 18px; padding: 12px; min-height: 320px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #edf2f7; margin: 3px; font-size: 12px; }
.priority-high, .risk-high, .level-high { background: #fed7d7; }
.priority-medium, .risk-medium, .level-medium { background: #feebc8; }
.priority-low, .risk-low, .level-low { background: #c6f6d5; }
.status-pending { background: #e2e8f0; }
.status-in_progress { background: #bee3f8; }
.status-done { background: #c6f6d5; }
.status-blocked { background: #fed7d7; }
.muted { color: #718096; font-size: 13px; }
.error { background: #fff5f5; border-color: #feb2b2; color: #742a2a; }
.success { background: #f0fff4; border-color: #9ae6b4; }
.login { max-width: 460px; margin: 8vh auto; }
pre { white-space: pre-wrap; background: #0b1020; color: #d6e4ff; padding: 14px; border-radius: 12px; overflow: auto; }
.score { font-size: 38px; font-weight: 700; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #e2e8f0; padding: 8px; text-align: left; vertical-align: top; }
@media (max-width: 1100px) { .kanban { grid-template-columns: 1fr; } .layout { grid-template-columns: 1fr; } .two-cols { grid-template-columns: 1fr; } }
