body{
    background:#f5f7fb;
    color:#1f2937;
    font-family:Arial,sans-serif;
}

.container{
    max-width:1100px;
    margin:20px auto;
    padding:0 15px;
}

.card{
    background:#ffffff;
    border:1px solid #dbe2ea;
    border-radius:12px;
    padding:18px;
    margin-bottom:15px;
    box-shadow:0 1px 3px rgba(0,0,0,0.03);
}

.card-title{
    margin:0 0 15px;
    font-size:20px;
}

.grid-2{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.btn{
    display:inline-block;
    padding:10px 16px;
    border-radius:8px;
    text-decoration:none;
    border:none;
    cursor:pointer;
    font-size:14px;
    transition:0.15s;
}

.btn-primary{
    background:#2563eb;
    color:white;
}

.btn-primary:hover{
    background:#1d4ed8;
}

.btn-secondary{
    background:#e5e7eb;
    color:#111827;
}

.btn-secondary:hover{
    background:#d1d5db;
}

.btn-danger{
    background:#dc2626;
    color:white;
}

.btn-danger:hover{
    background:#b91c1c;
}

.input,
.textarea,
.select{
    width:100%;
    border:1px solid #cfd8e3;
    border-radius:8px;
    padding:10px 12px;
    font-size:14px;
    box-sizing:border-box;
    background:white;
}

.textarea{
    min-height:120px;
    resize:vertical;
}

.form-group{
    margin-bottom:15px;
}

.label{
    display:block;
    margin-bottom:6px;
    font-size:14px;
    font-weight:600;
}

.top-actions{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.stage-item,
.task-item{
    border:1px solid #dbe2ea;
    border-radius:10px;
    padding:14px;
    margin-bottom:10px;
    background:#fafcff;
}

.stage-item:hover{
    background:#f3f7ff;
}

.flex-between{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.badge{
    display:inline-block;
    padding:5px 10px;
    border-radius:999px;
    font-size:12px;
    background:#eef2ff;
}

.badge-success{
    background:#dcfce7;
    color:#166534;
}

.badge-progress{
    background:#dbeafe;
    color:#1d4ed8;
}

.mt-10{
    margin-top:10px;
}

.mt-15{
    margin-top:15px;
}

.mt-20{
    margin-top:20px;
}

.mb-15{
    margin-bottom:15px;
}

.text-muted{
    color:#6b7280;
}

.small{
    font-size:13px;
}

.files-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
    gap:12px;
    margin-top:15px;
}

.file-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:12px;
    text-align:center;
    transition:0.15s;
    position:relative;
}

.file-card:hover{
    transform:translateY(-2px);
    border-color:#c7d2fe;
    box-shadow:0 6px 16px rgba(99,102,241,0.1);
}

.file-icon{
    font-size:28px;
    margin-bottom:8px;
}

.file-name{
    font-size:12px;
    color:#111827;
    word-break:break-word;
    min-height:32px;
}

.file-actions{
    margin-top:10px;
    display:flex;
    gap:5px;
    justify-content:center;
    opacity:0;
    transition:0.15s;
}

.file-card:hover .file-actions{
    opacity:1;
}

.btn-sm{
    padding:4px 8px;
    font-size:12px;
    border-radius:6px;
}

.file-preview img{
    width:100%;
    height:110px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
}

.pdf-preview{
    width:100%;
    height:110px;
    border:none;
    border-radius:8px;
    pointer-events:none; /* чтобы не ломать grid hover */
}